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 » XML to SOAP Message transformation

Post new topic  Reply to topic Goto page 1, 2  Next
 XML to SOAP Message transformation « View previous topic :: View next topic » 
Author Message
Today
PostPosted: Tue Feb 09, 2010 11:30 pm    Post subject: XML to SOAP Message transformation Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

Hi ,

I want to convert XML message to Soap message with addition of custom information to Header then send it to SoapRequest.Do I need to create the new message set for SOAP message or Use the default /soap/envelope/ namespace to create the soap envelope?
Thanks in advance.

Regards
Today
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 10, 2010 5:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

SOAP envelope is defined by the standard.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Today
PostPosted: Wed Feb 10, 2010 7:00 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

Thanks.

I am trying to create the envelope using ESQL

But Soap message is not getting populated.
Could you please suggest how to generate the envelope using ESQL?


Last edited by Today on Mon Feb 15, 2010 8:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 10, 2010 7:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

What nodes are you using? Describe your flow.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Today
PostPosted: Wed Feb 10, 2010 8:38 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

Input messgae is Xml and I need to populate the Soap message from there with some custom information that will be picked up from XML message and send it for further processing.

Last edited by Today on Mon Feb 15, 2010 9:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 10, 2010 8:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

And you've set the Compute node to pass this local environment data on to the SOAP node?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Today
PostPosted: Wed Feb 10, 2010 8:48 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

Yes .I have set Compute node property as Local Environment
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Feb 10, 2010 10:52 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

If you are using the SOAP nodes, don't create the Envelope yourself, the nodes do that for you...
_________________
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
Today
PostPosted: Mon Feb 15, 2010 7:13 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

Hi.
I am using below esql to generate the reply identifier as my input message is xml
SET OutputLocalEnvironment.Destination.SOAP.Reply.ReplyIdentifier =CAST (InputRoot.MQMD.MsgId AS BLOB)
But getting error as Message does not contain valid soap reply identifier.
Could you please give some suggestion.


Last edited by Today on Mon Feb 15, 2010 9:01 pm; edited 3 times in total
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 15, 2010 8:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Today wrote:
Hi.
I am using below esql to generate the reply identifier as my input message is xml
SET OutputLocalEnvironment.Destination.SOAP.Reply.ReplyIdentifier =CAST(InputRoot.MQMD.MsgId AS BLOB)

But getting error as Message does not contain valid soap reply identifie.
Could you please give some suggestion.Do I need to use ws addressing for it?

Is this a SOAP request or a soap reply message?
The cast seems bizarre as MQMD.MsgId is already defined as a blob.
Does not the SOAP request node create its own SOAP identifier?
Is the structure compatible with MsgId?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Today
PostPosted: Mon Feb 15, 2010 8:59 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

I need to create the soap reply message from input message (XML) and need to send it to soap input(request) node for further processing so i want to generate the reply identifie.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 15, 2010 9:05 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Today wrote:
I need to create the soap reply message from input message (XML) and need to send it to soap input(request) node for further processing so i want to generate the reply identifie.


You're not being very coherent here...
This should probably say need to create the soap request message from input message...

If you are trying to send the soap reply why would you not use a soap reply node and why would you not use the reply identifier from the SOAP input node?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Today
PostPosted: Mon Feb 15, 2010 9:11 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

Yes you are right
But my flow scenario like below :

Flow 1 : InputNode >computenode > soap reply node

Flow 2 : soapinput node > compute node > mqoutput node

I need to send the response for the request that will send by the flow 2 so I will need reply identifier to corelate with reuqest.

Can you please suggest for this scenario ?


Last edited by Today on Mon Feb 15, 2010 8:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
er_pankajgupta84
PostPosted: Mon Feb 15, 2010 2:46 pm    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

I think there is some misunderstanding.

You said ur scenarios:

Quote:


Flow 1 : InputNode >computenode(create custom soap header and body) > soap reply node

Flow 2 : soapinput node > compute node > mqoutput node


But I think its like:

Flow 1 : soapinput node > compute node > mqoutput node

Flow 2 : InputNode >computenode(create custom soap header and body) > soap reply node

Where Flow2's input node is the Flow1's output node.

If this is the case then you need to store reply identifier in a user header (MQRFH2) in the first flow itself and then copy that at the desired location in the local environment in flow 2. SOAP reply node will create the SOAP envelope for you. If you need a custom soap header then you can generate that using ur compute node in flow2. You just need to create childs of HttpInputHeader child.

PLease look for the exact name of the SOAP Header folder and SOAP reply identifier location in Local environment.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Today
PostPosted: Mon Feb 15, 2010 8:36 pm    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2010
Posts: 8

Yes you are correct .Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML to SOAP Message transformation
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.