| Author | 
		  Message
		 | 
		
		  | satyasheel15 | 
		  
		    
			  
				 Posted: Fri Jun 04, 2004 9:26 am    Post subject: Information regarding the message set | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 04 Mar 2003 Posts: 86
  
  | 
		  
		    
			  
				Hi,
 
 
I have created one CWF messageset CreditCardMessage and it contains following elemets
 
 CreditCardMessage  (Message) (CreditCardMessageType)
 
 |__MDSReqType      (MDSRequestHeaderType)
 
      |_ReqHdr                   (ReqHdrType)
 
         |_HeaderType         (xsd:string)
 
 
Now I have written a ESQL code to convert the CWF to XML like this:
 
 
SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;
 
 
Please let me know is this correct way to take the value of " HeaderType " and pass it to XML element " HeaderType"
 
 
Thanks in anticipation. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | TonyD | 
		  
		    
			  
				 Posted: Fri Jun 04, 2004 4:18 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Knight
 
 Joined: 15 May 2001 Posts: 540 Location: New Zealand 
  | 
		  
		    
			  
				| Well what happens when you execute the ESQL? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kirani | 
		  
		    
			  
				 Posted: Sat Jun 05, 2004 2:40 pm    Post subject: Re: Information regarding the message set | 
				     | 
			   
			 
		   | 
		
		
		   Jedi Knight
 
 Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA 
  | 
		  
		    
			  
				
   
	| satyasheel15 wrote: | 
   
  
	
 
Please let me know is this correct way to take the value of " HeaderType " and pass it to XML element " HeaderType"
 
 | 
   
 
 
Yes. _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | satyasheel15 | 
		  
		    
			  
				 Posted: Mon Jun 07, 2004 6:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 04 Mar 2003 Posts: 86
  
  | 
		  
		    
			  
				| Actually I want to know that did I written the correct ESQL to retrieve the value of the element. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | satyasheel15 | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 6:36 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 04 Mar 2003 Posts: 86
  
  | 
		  
		    
			  
				I have created one CWF messageset CreditCardMessage and it contains following elemets 
 
CreditCardMessage (Message) (CreditCardMessageType) 
 
|__MDSReqType (MDSRequestHeaderType) 
 
    |__ReqHdr (ReqHdrType) 
 
    |__HeaderType (xsd:string) 
 
 
Now I have written a ESQL code to convert the CWF to XML like this: 
 
 
SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType =   
 
      InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ; 
 
 
Please tell is this the correct way to convert the HeaderType defined as CWF to XML.
 
 
Can you please send me the the code for the same as mentioned above. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 6:41 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| satyasheel15 wrote: | 
   
  
	
 
Please tell is this the correct way to convert the HeaderType defined as CWF to XML.
 
 
Can you please send me the the code for the same as mentioned above. | 
   
 
 
 
Please tell us what happens when you run the code you are trying to run. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | satyasheel15 | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 6:50 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 04 Mar 2003 Posts: 86
  
  | 
		  
		    
			  
				Its' going to fail queue [terminal] of the Compute Node where the code is written.
 
 
Please suggest | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 6:56 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| satyasheel15 wrote: | 
   
  
	Its' going to fail queue [terminal] of the Compute Node where the code is written.
 
 
Please suggest | 
   
 
 
 
Please look at your local system error logs to determine why it is failing. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | satyasheel15 | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 7:08 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 04 Mar 2003 Posts: 86
  
  | 
		  
		    
			  
				It  is showing the error in the code :
 
 
SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ; | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 7:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| satyasheel15 wrote: | 
   
  
	| It  is showing the error in the code : | 
   
 
 
What is the exact error message, please? _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 7:34 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	Now I have written a ESQL code to convert the CWF to XML like this:
 
 
SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;
 
 
Please let me know is this correct way to take the value of " HeaderType " and pass it to XML element " HeaderType" | 
   
 
 
Only if HeaderType is a child of ReqHdr, and ReqHdr is a child of MSDReqType. Check your message definitions, and make sure that your ESQL path follows the hierarchy of the message definition. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | satyasheel15 | 
		  
		    
			  
				 Posted: Tue Jun 08, 2004 8:26 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 04 Mar 2003 Posts: 86
  
  | 
		  
		    
			  
				In my CWF messageset CreditCardMessage,
 
 
CreditCardMessage (Message) (CreditCardMessageType) 
 
|__MDSReqType (MDSRequestHeaderType) 
 
    |__ReqHdr (ReqHdrType) 
 
         |__HeaderType (xsd:string) 
 
 
Header Type is the child local element of of ReqHdr [this if of type ReqHdrType] and ReqHdr is the child of MDSReqType [this is of the type MDSRequestHeaderType], which is the child of the message CreditCardMessage.
 
 
So with this information, is the code :-
 
SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;
 
 
is correct. Please confirm. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Wed Jun 09, 2004 12:37 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				Put a trace node in your message flow, and trace ${Root}.
 
If you still have problems, please post the trace node output in your next message. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kirani | 
		  
		    
			  
				 Posted: Wed Jun 09, 2004 10:58 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Jedi Knight
 
 Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA 
  | 
		  
		    
			  
				Also, you can put a trace node in failure terminal of Compute node and printing ${ExceptionList} to capture exact error message. _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |