| Author | 
		  Message
		 | 
		
		  | orman | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 9:21 am    Post subject: WMB8.0.0.2 - Cast in mapper | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Aug 2013 Posts: 40
  
  | 
		  
		    
			  
				hey,
 
 
I have to convert some maps from wmb6.1.0.11 to wmb8.0.0.2
 
i got a map using "Show Derived Type" - this one create an xml with xsi:type and the derived type i choosed
 
 
i wanted to do the same with wmb8, using Cast function, but after the map i get an xml with no xsi:type so it fails on validation .. 
 
 
in order to fix it i had to add the xsi after the map in esql the namespace .. i don't realy like to do it.. is there anthoer option guys ?
 
 
Thanks alot,
 
Or. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 9:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 9:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				The v8 GDM should build the output tree based on the message model. 
 
 
The CAST will only convert the value of the source field into what's needed to fit into the value of the destination field. 
 
 
It sounds like the destination field has the wrong type, either in the schema or in the map. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | orman | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 9:46 am    Post subject: .. | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Aug 2013 Posts: 40
  
  | 
		  
		    
			  
				How can xsi:nill to help me? 
 
 
i want the output of the mapping of wmb8 to contain xsi:type as i get in wmb6 .. the cast function doesnt do the same work .. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 10:40 am    Post subject: Re: .. | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 3:29 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	| in order to fix it i had to add the xsi after the map in esql the namespace .. i don't realy like to do it. | 
   
 
Did you try explicitly adding the xsi:type attribute using the Mapping node? I agree with mqjeff that it should not be necessary, but I'm fairly sure that the workaround can be done using Mapping node facilities. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | orman | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 8:14 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Aug 2013 Posts: 40
  
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	| Did you try explicitly adding the xsi:type attribute using the Mapping node? I agree with mqjeff that it should not be necessary, but I'm fairly sure that the workaround can be done using Mapping node facilities. | 
   
 
 
 
i tried to the the attributes in the map - fail .. just with esql it worked
 
 
   
	| Quote: | 
   
  
	The CAST will only convert the value of the source field into what's needed to fit into the value of the destination field. 
 
 
It sounds like the destination field has the wrong type, either in the schema or in the map. | 
   
 
 
 
But its the same MS as 6.1 .. i tried to use Library - but got the same output and with MS ..
 
 
This new GDM is doing alot of mess :S bahh | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | NealM | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 9:21 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 22 Feb 2011 Posts: 230 Location: NC or Utah (depends) 
  | 
		  
		    
			  
				Have you updated your Toolkit with the interim fix for 8002 that came out in July? There were a few mapper fixes included.
 
Also, a PMR doesn't hurt; the developers have been responsive to our mapper issues, they just need an explanation of why the way they have it set up might not be in the user's best interest. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | orman | 
		  
		    
			  
				 Posted: Thu Aug 08, 2013 10:04 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Aug 2013 Posts: 40
  
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	Have you updated your Toolkit with the interim fix for 8002 that came out in July? There were a few mapper fixes included. 
 
. | 
   
 
 
 
No i didn't .. i checked the fixes list
 
7. Mapper
 
APAR IC90814 GDM Editor creates map select transform Where clauses with namespaced elements that can fail in runtime
 
APAR IC91188 MAP shows no error when cast item is unavailable
 
APAR IC92156 Null pointer exception when converting msgmap to map
 
APAR IC92618 The plugin com.ibm.etools.mft.uri.map was not included in the V8002 install image
 
APAR IC92655 Check optional input present for custom ESQL transform
 
APAR IC92689 Msgmap converter does not support abstract submap input/output
 
APAR IC92881 Local environment schema missing elements in ServiceRegistry
 
APAR IC93539 Unexpected condition on converted customer ESQL transform
 
APAR IC93651 .msgmap to .map conversion can fail with a ClassCastException 
 
 
it doesnt seems like the my issue fixed there..
 
 
 
PMR idea is good too, i will try it 
 
and by the time, i will try to use the new interim fix for 8002
 
 
If someone has the it, can he/she test the output of casting inherited element in GDM? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Thu Aug 22, 2013 4:24 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				Just to follow this up, this is a known problem, and there is a fix available. Please open a PMR ( if you haven't already done so ) and IBM will supply a fix. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |