|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
SOAP Request - Compute node |
« View previous topic :: View next topic » |
Author |
Message
|
MB Developer |
Posted: Fri Apr 24, 2015 10:28 am Post subject: Re: SOAP Request - Compute node |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi fjb_saper,
Once check my code and let me know below code is correct or not
Code: |
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:impl="http://blabla.blabla.fr">
<soapenv:Header/>
<soapenv:Body>
<impl:function soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<data xsi:type="x-:Map" xmlns:x-="http://xml.apache.org/xml-soap">
NULL
</data>
</impl:function>
</soapenv:Body>
</soapenv:Envelope> |
Modified code
Quote: |
DECLARE xsi NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE impl NAMESPACE 'http://blabla.blabla.fr';
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
CALL CopyMessageHeaders();
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.{XMLNSC.Attribute}soapenv:encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.data.{XMLNSC.Attribute}xsi:type = 'x-:Map';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.data.{XMLNSC.NameSpaceDecl}xmlns:x = 'http://xml.apache.org/xml-soap';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.data = 'NULL';
|
Once check my code and let me know.... _________________ Thanks.... |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Apr 24, 2015 10:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
So what happens when you try it out? _________________ MQ & Broker admin |
|
Back to top |
|
 |
iibmate |
Posted: Tue Apr 28, 2015 4:41 am Post subject: Re: SOAP Request - Compute node |
|
|
 Apprentice
Joined: 17 Mar 2015 Posts: 38 Location: Perth, WA
|
MB Developer wrote: |
Hi fjb_saper,
Once check my code and let me know below code is correct or not
Code: |
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:impl="http://blabla.blabla.fr">
<soapenv:Header/>
<soapenv:Body>
<impl:function soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<data xsi:type="x-:Map" xmlns:x-="http://xml.apache.org/xml-soap">
NULL
</data>
</impl:function>
</soapenv:Body>
</soapenv:Envelope> |
Modified code
Quote: |
DECLARE xsi NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE impl NAMESPACE 'http://blabla.blabla.fr';
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
CALL CopyMessageHeaders();
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.{XMLNSC.Attribute}soapenv:encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.data.{XMLNSC.Attribute}xsi:type = 'x-:Map';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.data.{XMLNSC.NameSpaceDecl}xmlns:x = 'http://xml.apache.org/xml-soap';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.impl:function.data = 'NULL';
|
Once check my code and let me know.... |
Namespace assignations ? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 28, 2015 4:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
your XMLNSC.Attribute etc should not be in between curly braces {} but in between parentheses ()
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
MB Developer |
Posted: Tue Apr 28, 2015 6:26 am Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Thanks fjb_saper.... and iibmate  _________________ Thanks.... |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|