Author |
Message
|
Today |
Posted: Tue Feb 09, 2010 11:30 pm Post subject: XML to SOAP Message transformation |
|
|
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 |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 5:57 am Post subject: |
|
|
 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 |
|
 |
Today |
Posted: Wed Feb 10, 2010 7:00 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 7:47 am Post subject: |
|
|
 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 |
|
 |
Today |
Posted: Wed Feb 10, 2010 8:38 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 8:45 am Post subject: |
|
|
 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 |
|
 |
Today |
Posted: Wed Feb 10, 2010 8:48 am Post subject: |
|
|
Newbie
Joined: 09 Feb 2010 Posts: 8
|
Yes .I have set Compute node property as Local Environment |
|
Back to top |
|
 |
mgk |
Posted: Wed Feb 10, 2010 10:52 am Post subject: |
|
|
 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 |
|
 |
Today |
Posted: Mon Feb 15, 2010 7:13 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Feb 15, 2010 8:48 am Post subject: |
|
|
 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 |
|
 |
Today |
Posted: Mon Feb 15, 2010 8:59 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Feb 15, 2010 9:05 am Post subject: |
|
|
 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 |
|
 |
Today |
Posted: Mon Feb 15, 2010 9:11 am Post subject: |
|
|
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 |
|
 |
er_pankajgupta84 |
Posted: Mon Feb 15, 2010 2:46 pm Post subject: |
|
|
 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 |
|
 |
Today |
Posted: Mon Feb 15, 2010 8:36 pm Post subject: |
|
|
Newbie
Joined: 09 Feb 2010 Posts: 8
|
Yes you are correct .Thanks |
|
Back to top |
|
 |
|