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 » creating WMB soap body

Post new topic  Reply to topic
 creating WMB soap body « View previous topic :: View next topic » 
Author Message
ameya_nayak
PostPosted: Tue Jul 30, 2013 7:23 am    Post subject: creating WMB soap body Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jul 30, 2013 7:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kimbert
PostPosted: Tue Jul 30, 2013 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message
dogorsy
PostPosted: Tue Jul 30, 2013 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Jul 30, 2013 9:17 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 30, 2013 10:04 am    Post subject: Reply with quote

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
View user's profile Send private message
dogorsy
PostPosted: Tue Jul 30, 2013 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 30, 2013 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
dogorsy
PostPosted: Tue Jul 30, 2013 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 30, 2013 11:42 am    Post subject: Reply with quote

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
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 » creating WMB soap body
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.