| Author | 
		  Message
		 | 
		
		  | _novice_ | 
		  
		    
			  
				 Posted: Tue Nov 02, 2004 1:02 pm    Post subject: beginners: compute node doubts | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 22 Oct 2004 Posts: 15
  
  | 
		  
		    
			  
				I have created an input node , output node and a compute node in between
 
The message domain is MRM.
 
I am trying to send an XML message to the input.
 
 
<?xml version="1.0" encoding="UTF-8"?>
 
<logentry>
 
<name>novice</name>
 
</logentry>
 
 
If  I specify "copy entire message" in the compute node properties , I am getting the full XML properly in the output node.
 
 
But if I add one more statement as below I am just getting 
 
"<logentry/>" .. and nothing else.
 
 
SET OutputRoot = InputRoot;
 
-- Enter SQL below this line.  SQL above this line might be regenerated, causing any modifications to be lost.
 
SET OutputRoot.XML.logentry.name = UPPER(InputRoot.XML.logentry.name);
 
 
Is there anything wrong with my simple ESQL..?
 
 
Pls take ur time .
 
Thnx in advance. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | _novice_ | 
		  
		    
			  
				 Posted: Tue Nov 02, 2004 1:27 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 22 Oct 2004 Posts: 15
  
  | 
		  
		    
			  
				I get the following error in the event viewer
 
 
( MQSI_SAMPLE_BROKER.MESSAGE_FLOWS ) Invalid Wire format ''.   
 
 
When processing an MRM message the broker requires a valid wire format indicator. Expected XML, PDF or Custom Wire Format prefix and got ''.   
 
 
Check that you have packaged the message correctly and set the correct message properties then resubmit the message.   
 
 
Where is the Wire  Format set..? 
 
I am not defined any Message Sets. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Nizam | 
		  
		    
			  
				 Posted: Tue Nov 02, 2004 1:47 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 10 Feb 2004 Posts: 160
  
  | 
		  
		    
			  
				Use the following two lines of code 
 
set OutputRoot.Properties.MessageDomain = 'XML';
 
set OutputRoot.Properties.MessageSet = 'XML';
 
 
copy you message headers...
 
 
then copy your xml message tree.
 
 
You got that error because the broker did not know what parser to use. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | EddieA | 
		  
		    
			  
				 Posted: Tue Nov 02, 2004 3:57 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles 
  | 
		  
		    
			  
				Probably easier to set XML as the Default in the Input Node.
 
 
Cheers, _________________ Eddie Atherton
 
IBM Certified Solution Developer - WebSphere Message Broker V6.1
 
IBM Certified Solution Developer - WebSphere Message Broker V7.0 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kirani | 
		  
		    
			  
				 Posted: Tue Nov 02, 2004 11:45 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Jedi Knight
 
 Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA 
  | 
		  
		    
			  
				
   
	| Nizam wrote: | 
   
  
	
 
set OutputRoot.Properties.MessageDomain = 'XML';
 
 | 
   
 
 
This property is not used anymore. _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |