|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  XML to CWF fail | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | pan_khandar | 
		  
		    
			  
				 Posted: Tue Jul 09, 2002 8:56 am    Post subject: XML to CWF fail | 
				     | 
			   
			 
		   | 
		 
		
		   Novice
 
 Joined: 21 Jun 2002 Posts: 17
  
  | 
		  
		    
			  
				Hi,
 
 
I am send a simple XML message like
 
 
<first><second>1234</second><third>xyz</third>
 
 and converting it to MRMCWF format using Message set.
 
and i am put output like this 
 
 
OutputRoot.MRM.second = InputBody.first.second;
 
OutputRoot.MRM.third = InputBody.first.third;
 
 
but in the output queue i am able to see only one value (second).
 
why the value of third is not coming to queue?
 
 
Thanks
 
 
Pankaj
 
------------------------------------------------------------------------- | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | kirani | 
		  
		    
			  
				 Posted: Tue Jul 09, 2002 7:15 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Jedi Knight
 
 Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA 
  | 
		  
		    
			  
				Pankaj,
 
 
I assume you made a mistake while typing the input xml message. You meant to type,
 
<first><second>1234</second><third>xyz</third></first>
 
 
I suspect there is something wrong with your message definition. Please recheck your element lengths in MRM. Make sure you have set “Copy Message Headers Only” in your compute node. Could you post the contents of your Compute node here? Are you setting values in Properties folder?
 
SET OutputRoot.Properties.MessageSet = '..';
 
SET OutputRoot.Properties.MessageFormat = '..';
 
SET OutputRoot.Properties.MessageType = '..';
 
 
Try adding a trace node in between your Compute node and MQOutput node. Configure the trace node to write output to a file and print ${Root} in it. After you pass message thru message flow, see the trace file and verify the contents of the tree. _________________ Kiran
 
 
 
IBM Cert. Solution Designer & System Administrator - WBIMB V5
 
IBM Cert. Solutions Expert - WMQI
 
IBM Cert. Specialist - WMQI, MQSeries
 
IBM Cert. Developer - MQSeries
 
 
 | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | kirani | 
		  
		    
			  
				 Posted: Tue Jul 09, 2002 7:16 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Jedi Knight
 
 Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA 
  | 
		  
		    
			  
				Pankaj,
 
 
I assume you made a mistake while typing the input xml message. You meant to type,
 
<first><second>1234</second><third>xyz</third></first>
 
 
I suspect there is something wrong with your message definition. Please recheck your element lengths in MRM. Make sure you have set "Copy Message Headers Only" in your compute node. Could you post the contents of your Compute node here? Are you setting values in Properties folder?
 
SET OutputRoot.Properties.MessageSet = '..';
 
SET OutputRoot.Properties.MessageFormat = '..';
 
SET OutputRoot.Properties.MessageType = '..';
 
 
Try adding a trace node in between your Compute node and MQOutput node. Configure the trace node to write output to a file and print ${Root} in it. After you pass message thru message flow, see the trace file and verify the contents of the tree. _________________ Kiran
 
 
 
IBM Cert. Solution Designer & System Administrator - WBIMB V5
 
IBM Cert. Solutions Expert - WMQI
 
IBM Cert. Specialist - WMQI, MQSeries
 
IBM Cert. Developer - MQSeries
 
 
 | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | garyweik | 
		  
		    
			  
				 Posted: Tue Jul 30, 2002 11:10 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Apprentice
 
 Joined: 28 Jun 2002 Posts: 30 Location: Miamisburg, Ohio 
  | 
		  
		    
			  
				Try:
 
 
OutputRoot.MRM.second = InputRoot.XML.first.second; 
 
OutputRoot.MRM.third = InputRoot.XML.first.third; 
 
 
I have found that sometime the mapping feature doesn't work the way you think it should.
 
 
Gary | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | sgopal | 
		  
		    
			  
				 Posted: Wed Jul 31, 2002 8:28 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Acolyte
 
 Joined: 30 Jul 2002 Posts: 63
  
  | 
		  
		    
			  
				I agree.
 
 
Dont forget to use the qualifier XML while reffering to the elements in the message. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |