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 » How to create a New Envelop Header in SOAP Message

Post new topic  Reply to topic
 How to create a New Envelop Header in SOAP Message « View previous topic :: View next topic » 
Author Message
PKK
PostPosted: Thu Jan 27, 2011 4:08 pm    Post subject: How to create a New Envelop Header in SOAP Message Reply with quote

Newbie

Joined: 10 Nov 2010
Posts: 1

I am trying to construct a flow which receives a SOAP Message and reply to the requester with a new SOAP Message.

The incoming message has two parts. The first part is included in <soapenv:Header> and the second part of the message in <soapenv:Body>.

There is no problem to parse the incloming message. The problem I have is cosntructing a new SOAP message which has the same structure where I have to create a new set of but with different <soapenv:Header>.

I suspect that I can use SOAPEnvelope Node with "Create new envelope" option checked. However, I am trying to find a code sample to create a new Envelope, but without success.

Would you please help me out with this?

Thanks in advance.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 27, 2011 7:23 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Wire a flow as follows:
SoapInput->Trace

Set the "pattern" on the Trace node to ${Root}.

Examine the results.

Consider, and review the documentation.

I mean... this is what I'd do.
Back to top
View user's profile Send private message
mgk
PostPosted: Fri Jan 28, 2011 4:32 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

You should not need to use the SOAPEnvelope node with the SOAP nodes (the Envelope node is really aimed as the HTTP nodes). So do what you are looking to do would be something like:

SET OutputRoot.SOAP.Header.myHeader1 = [myHeader1];
SET OutputRoot.SOAP.Header.myHeader2 = [myHeader2];
SET OutputRoot.SOAP.Body.myResponse = [myBody];

The SOAP Reply node will automatically add an envelope around the message that matches the WSDL SOAP version.

Hope this helps,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » How to create a New Envelop Header in SOAP Message
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.