|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| Question about HTTP Request node | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | rk1891 | 
			  
				|  Posted: Wed Feb 08, 2017 6:55 am    Post subject: Question about HTTP Request node |   |  |  
		  | Apprentice
 
 
 Joined: 12 Oct 2011Posts: 42
 
 
 | 
			  
				| This is about the properties of HTTP request node 
 Why {http://schemas.xmlsoap.org/soap/envelope/}:Envelope is working in 'Message' property under 'Response Message Parsing'
 and
 Why InputRoot.{http://schemas.xmlsoap.org/soap/envelope/}:MRM is NOT working in 'Request message location in tree' under 'Advanced'.
 
 I had to put InputRoot.{'http://schemas.xmlsoap.org/soap/envelope/'}:MRM
 
 Notice the difference between how the namespace is defined. First one without quotes and the second one with quotes.
 
 PS: I'm using WMB tool kit 8.0.0.7.
 |  |  
		  | Back to top |  |  
		  |  |  
		  | mqjeff | 
			  
				|  Posted: Wed Feb 08, 2017 7:09 am    Post subject: |   |  |  
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 | 
			  
				| The MRM parser is not a SOAP Envelop.  It does not belong to the SOAP namespace. _________________
 chmod  -R ugo-wx /
 |  |  
		  | Back to top |  |  
		  |  |  
		  | rk1891 | 
			  
				|  Posted: Wed Feb 08, 2017 7:55 am    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 12 Oct 2011Posts: 42
 
 
 | 
			  
				| We are using generated message set out of the wsdl. 
 And in the preceding Java compute node, we've the code as below to construct the SOAP envelope, hence I was trying to use that value for 'Request message location in tree' of HTTP request node.
 
 MbElement mrm=outRoot.createElementAsLastChild("MRM");
 outRoot.evaluateXPath("string(./MRM[set-namespace-uri('http://schemas.xmlsoap.org/soap/envelope/')])");
 MbElement body =mrm.createElementAsLastChild(MbElement.TYPE_NAME,"Body",null);
 body.setNamespace("http://schemas.xmlsoap.org/soap/envelope/");
 MbElement sendMessage=body.createElementAsLastChild(MbElement.TYPE_NAME,"SendMessage",null);
 sendMessage.setNamespace("http://com.xyz.abc/order/");
 |  |  
		  | Back to top |  |  
		  |  |  
		  | mqjeff | 
			  
				|  Posted: Wed Feb 08, 2017 8:04 am    Post subject: |   |  |  
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 | 
			  
				| 
   
	| rk1891 wrote: |  
	| outRoot.evaluateXPath("string(./MRM[set-namespace-uri('http://schemas.xmlsoap.org/soap/envelope/')])"); |  
 This is invalid.
 
 MRM is a parser, not an element that can have a namespace.
 _________________
 chmod  -R ugo-wx /
 |  |  
		  | Back to top |  |  
		  |  |  
		  | rk1891 | 
			  
				|  Posted: Thu Feb 09, 2017 1:00 pm    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 12 Oct 2011Posts: 42
 
 
 | 
			  
				| Hmm...Ok, Thanks. It was some legacy code written by someone almost a decade ago.
 |  |  
		  | 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
 
 |  |  |  |