| Author | 
		  Message
		 | 
		
		  | blueman | 
		  
		    
			  
				 Posted: Sun Aug 22, 2010 6:19 am    Post subject: HTTPInput Node- xmlnsc issue | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 23 May 2010 Posts: 15
  
  | 
		  
		    
			  
				Hi,
 
 
Am doing a poc using httpInputNode-->compute-->HttpReplynode. I am usinf XMLNSC domain. 
 
 
I can see the webservice request coming through. but iam not ale to set the input value to local envirionment. I have copied the piece of code for reference
 
 
 
   
	| Code: | 
   
  
	DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
 
DECLARE ns253 NAMESPACE 'http://xxx.com/getuserid';
 
 
......
 
....
 
 
SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Body.ns253:GetAlluserRq.UserId;
 
...
 
..
 
My input message is    
 
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:get="http://xxx.com/getuserid">
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
      </get:GetuidRq>
 
         <UserId>test</UserId>
 
      </get:GetAlluserRq>
 
   </soapenv:Body>
 
</soapenv:Envelope> | 
   
 
 
 
Thanks
  Last edited by blueman on Sun Aug 22, 2010 9:33 am; edited 1 time in total | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Sun Aug 22, 2010 6:26 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Have you checked your input message? It is invalid xml.
 
 
There is no closing tag for <get:GetuidRq>
 
There is no opening tag for </get:GetAlluserRq>
 
 
Have fun   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | blueman | 
		  
		    
			  
				 Posted: Sun Aug 22, 2010 9:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 23 May 2010 Posts: 15
  
  | 
		  
		    
			  
				Thats a mistke while i copied it over. the  request is coming thru successfully.Only thing is that am not able to set it to local variable.
 
 
is this right?
 
SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Body.ns253:GetAlluserRq.UserId;
 
 
Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Sun Aug 22, 2010 9:47 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				We can't tell without seeing a good solid presentation of your input message.
 
 
Your best bet to solve this problem is to run your flow and take a User Trace at debug level.  This will show you a step-by-step view of how the XMLNSC parser produces the message tree and how your ESQL SET statement is evaluated.
 
 
You can then adjust the ESQL to match the message tree. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | blueman | 
		  
		    
			  
				 Posted: Sun Aug 22, 2010 1:47 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 23 May 2010 Posts: 15
  
  | 
		  
		    
			  
				sorry abot that.. here is the valid input message.. I will run the trace and post shortly.
 
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:get="http://xxx.com/getuserid"> 
 
   <soapenv:Header/> 
 
   <soapenv:Body> 
 
      <get:GetuidRq> 
 
         <UserId>test</UserId> 
 
      </get:GetuidRq> > 
 
   </soapenv:Body> 
 
</soapenv:Envelope>
 
 
thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Sun Aug 22, 2010 6:53 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| blueman wrote: | 
   
  
	
 
is this right?
 
   
	| Code: | 
   
  
	| SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Body.ns253:GetAlluserRq.UserId; | 
   
 
 
 
Thanks | 
   
 
 
 
From what you sent us it should more look like:
 
   
	| Code: | 
   
  
	| SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.get:GetuidRq.UserId; | 
   
 
 
 
Have fun   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | blueman | 
		  
		    
			  
				 Posted: Tue Aug 24, 2010 3:58 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 23 May 2010 Posts: 15
  
  | 
		  
		    
			  
				thanks everybody.
 
 
the issue is solved. the namespace was wrong. corrected and it worked.
 
 
thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |