Author |
Message
|
T4ss1nf |
Posted: Tue Sep 30, 2008 12:59 am Post subject: From Soap-String to Text on MQ |
|
|
Newbie
Joined: 30 Sep 2008 Posts: 6
|
Hi,
I'm implementing my first flow:
- A soap request with a string payload (xsd:string) which should be put on two queues as JMSTextMessages.
- the Soap response with 0 if everything works fine, 1 if one or both of the messages can't be put on the Queue.
I manage to
- Put the message on the 2 queues as JMSTextMessage (Using JMQOutput Nodes)
- Send a coherent response
But for now, I'm not able to remove the Soap-Envelop from the message I put on the queues.
After 2 days of unsuccessful try-and-fail, I post here my question:
- How can I, in a compute node (or in a javacompute node), extract the interesting string-field to provide it as input to a MQOutput Node?
Best regards,
Florent.
-- FYI --
Here is the wsdl-part with the message definition:
<message name="PDT_processPDTMessage">
<part name="String_1" type="xsd:string"/>
</message>
Here is the ESQL Procedure I'm currently using to build the message with the soap envelop:
CREATE PROCEDURE ExtractPayload() BEGIN
SET OutputRoot.XMLNSC = InputRoot.XMLNSC;
END; |
|
Back to top |
|
 |
Vijay_d |
Posted: Tue Sep 30, 2008 1:20 am Post subject: |
|
|
Apprentice
Joined: 09 Oct 2006 Posts: 26 Location: LONDON
|
Hi,
Can u please provide how ur trying to recieve the SOAP request.
are u trying to use the SOAP nodes .. or HTTP nodes...
By the wat what is the error ur facing.. is it when ur trying to create a SOAP response back??
Which domain do u use??
Please also let us know the version.
Thanks
Vj |
|
Back to top |
|
 |
T4ss1nf |
Posted: Tue Sep 30, 2008 1:40 am Post subject: |
|
|
Newbie
Joined: 30 Sep 2008 Posts: 6
|
I'm using the SOAPInput node followed by a subflow containing a SOAPExtract Node and a single Label as there is only one operation defined in the wsdl. (as in the provided samples )
I have no error, but the message body put on the Queues contains the complete SOAP request and this is not the foreseen behavior.
I must extract the String_1 field from the webservice request and put this field value on the queues (without the Soap-envelop). Of course the Soap-Context should remain as I build the Soap-response after I put the messages on the queues.
The Version of the Broker is 6.1.
what do you mean by used domain?
Thanks,
Florent |
|
Back to top |
|
 |
Subha |
Posted: Tue Sep 30, 2008 2:04 am Post subject: From Soap-String to Text on MQ |
|
|
Apprentice
Joined: 14 Nov 2006 Posts: 33 Location: Toronto
|
SOAPExtract Node has a property "Remove Envelope" that needs to be checked.
The output message will not then have soap envelope.
Just check you have selected the right option.
Then you can generate the output message to be placed in MQOutput.
Thanks! _________________ Subh |
|
Back to top |
|
 |
Mandeep |
Posted: Tue Sep 30, 2008 2:14 am Post subject: |
|
|
Apprentice
Joined: 03 May 2004 Posts: 33
|
Hi,
Did you try to get the SOAP Body contents from the input to Output? :
OutputRoot.XMLNS = InputRoot.XMLNS.nsSoap:Envelope.nsSoap:Body;
where nsSoap being 'http://schemas.xmlsoap.org/soap/envelope/' |
|
Back to top |
|
 |
|