Author |
Message
|
ameya_nayak |
Posted: Tue Jul 30, 2013 7:23 am Post subject: creating WMB soap body |
|
|
Apprentice
Joined: 10 Jul 2013 Posts: 26
|
I am facing problem for Creating SOAP Body structure from
InputRoot.SOAP.Body to OutputRoot.XMLNS.soap:Envelope.soap:Body
I am calling aboce code from compute not after caaling webservice and passing it from MQoutput node
In another flow MQinput node is listening to this queue but tree stucture is empty
Right now i am using beloe lines of code
SET OutputRoot.XMLNS.CompositeResponse.ReverifyAgency3InitVerifResponse =InputRoot.SOAP.Body
ReverifyAgency3InitVerifResponse is response for web service
Thanks |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 30, 2013 7:25 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
There is a working example sample. Search the InfoCentre to find it.
You should be using XMLNSC not XMLNS.
Simply copying the Input to the Output may not produce the properly formatted response message.
You don't need to specify XMLNSC in your OutputRoot, you can use OutputRoot.SOAP.Body.
Don't forget to set the HttpStatusCode to 200 for success or something else for failure.
Use Trace nodes in all your flows. There is no reason not to, and using them will help you understand why your Logical Message Tree is blank.
These techniques are taught in the nine days of training. You may like to enroll in IBM's class. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jul 30, 2013 7:48 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
This:
Code: |
SET OutputRoot.XMLNS.CompositeResponse.ReverifyAgency3InitVerifResponse =InputRoot.SOAP.Body |
will not do what you want. The SOAP message tree uses XMLNSC, so if you copy from InputRoot.SOAP to OutputRoot.XMLNS then you will lose all XML-specific information ( because you are copying the message tree to a different domain ). IBM recommends that XMLNSC should be used in all new message flows. This is a good example of why IBM issues that recommendation.
Having said all of that, I agree with lancelotinc:
Quote: |
You don't need to specify XMLNSC in your OutputRoot, you can use OutputRoot.SOAP.Body |
_________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
dogorsy |
Posted: Tue Jul 30, 2013 8:09 am Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
[quote="kimbert"]Having said all of that, I agree with lancelotinc:
Quote: |
You don't need to specify XMLNSC in your OutputRoot, you can use OutputRoot.SOAP.Body |
why bother reading the docs, going to courses, etc ? it is easier to copy and paste and someone will tell me how to do it. Sometimes I wonder why people use their valuable time in answering things that can easily be found in the infocenter. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 30, 2013 9:17 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dogorsy wrote: |
Sometimes I wonder why people use their valuable time in answering things that can easily be found in the infocenter. |
We're nice people. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 30, 2013 10:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
dogorsy wrote: |
Sometimes I wonder why people use their valuable time in answering things that can easily be found in the infocenter. |
We're nice people. |
Who get annoyed when people waste their own time sitting around for three days waiting for enlightenment from on high, rather than actually looking for the information themselves.
Which is exactly what DOES happen. They post asking a basic question, nobody responds, and three days later they ask if anyone can help. |
|
Back to top |
|
 |
dogorsy |
Posted: Tue Jul 30, 2013 10:18 am Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
mqjeff wrote: |
Vitor wrote: |
dogorsy wrote: |
Sometimes I wonder why people use their valuable time in answering things that can easily be found in the infocenter. |
We're nice people. |
Who get annoyed when people waste their own time sitting around for three days waiting for enlightenment from on high, rather than actually looking for the information themselves.
Which is exactly what DOES happen. They post asking a basic question, nobody responds, and three days later they ask if anyone can help. |
Everybody should tell to RTFM |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 30, 2013 10:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
dogorsy wrote: |
mqjeff wrote: |
Vitor wrote: |
dogorsy wrote: |
Sometimes I wonder why people use their valuable time in answering things that can easily be found in the infocenter. |
We're nice people. |
Who get annoyed when people waste their own time sitting around for three days waiting for enlightenment from on high, rather than actually looking for the information themselves.
Which is exactly what DOES happen. They post asking a basic question, nobody responds, and three days later they ask if anyone can help. |
Everybody should tell to RTFM |
We've tried that, too.
They complain we're being mean.
Answer a 1000 posts on your own, and then discuss. |
|
Back to top |
|
 |
dogorsy |
Posted: Tue Jul 30, 2013 10:54 am Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
mqjeff wrote: |
Answer a 1000 posts on your own, and then discuss. |
I copied and pasted the above in a compute node and face problem. please help. Should I use java compute ? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 30, 2013 11:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
dogorsy wrote: |
mqjeff wrote: |
Answer a 1000 posts on your own, and then discuss. |
I copied and pasted the above in a compute node and face problem. please help. Should I use java compute ? |
You are free. To do what you want. Any old time. |
|
Back to top |
|
 |
|