ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » From Soap-String to Text on MQ

Post new topic  Reply to topic
 From Soap-String to Text on MQ « View previous topic :: View next topic » 
Author Message
T4ss1nf
PostPosted: Tue Sep 30, 2008 12:59 am    Post subject: From Soap-String to Text on MQ Reply with quote

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
View user's profile Send private message
Vijay_d
PostPosted: Tue Sep 30, 2008 1:20 am    Post subject: Reply with quote

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
View user's profile Send private message
T4ss1nf
PostPosted: Tue Sep 30, 2008 1:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Subha
PostPosted: Tue Sep 30, 2008 2:04 am    Post subject: From Soap-String to Text on MQ Reply with quote

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
View user's profile Send private message
Mandeep
PostPosted: Tue Sep 30, 2008 2:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » From Soap-String to Text on MQ
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.