Author |
Message
|
sudeepm |
Posted: Tue Mar 25, 2008 3:57 am Post subject: Http Request node and soap message |
|
|
Acolyte
Joined: 31 Jan 2008 Posts: 57
|
Can somebody tell me how to create Soap message using Java compute node .
I need to create a soap message to call http Request |
|
Back to top |
|
 |
JosephGramig |
Posted: Tue Mar 25, 2008 4:07 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
Did you load the Sample from the Samples Gallery?
Under the Help menu. _________________ Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3 |
|
Back to top |
|
 |
sudeepm |
Posted: Tue Mar 25, 2008 4:53 am Post subject: |
|
|
Acolyte
Joined: 31 Jan 2008 Posts: 57
|
I checked it but they are in ESQL and i need to work on Java |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 25, 2008 4:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
sudeepm wrote: |
I checked it but they are in ESQL and i need to work on Java |
Constructing a SOAP message in Java is the same as constructing any other message in Java. You use the MB Java API, create the necessary MbElements with the necessary properties in the necessary tree structure. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
DaveCanto |
Posted: Thu Apr 17, 2008 7:29 am Post subject: |
|
|
 Novice
Joined: 01 Feb 2008 Posts: 11 Location: Belgium - EU
|
JosephGramig wrote: |
Did you load the Sample from the Samples Gallery?
Under the Help menu. |
I'm also struggling with the HTTPRequest node. I don't know how the request itself should look like. I looked at the samples under help menu. Which sample handles about webservices and the HTTPRequest? _________________ Do not underestimate the power of ... unit testing and continuous integration. |
|
Back to top |
|
 |
DaveCanto |
Posted: Fri Apr 18, 2008 2:12 am Post subject: |
|
|
 Novice
Joined: 01 Feb 2008 Posts: 11 Location: Belgium - EU
|
I try to use Environment.WSRequest to store my request xml message. I've defined both Environment.WSRequest and Environment.WSReply on the advanced properties of my HTTPRequest node. When the flow exits the HTTPRequest node, there is an error saying 'bad request'. What's strange is the fact that the HTTPResponseHeader is generated in my message and not in Environment.WSReply like I configured. According to me this is a bug in the HTTPRequest node.
When I do the same thing without using the Environment, but everything directly in InputRoot and OutputRoot, I get a correct response from my webservice. But because I want to save my original message, I do a CALL CopyEntireMessage() first and I try to manage my webservice request / reply in the Environment. The webservice is used to get some extra parameters / data, I can use to process my incoming message.
I'm using WBIMB 5.1.0. _________________ Do not underestimate the power of ... unit testing and continuous integration. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Apr 18, 2008 2:20 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
DaveCanto wrote: |
I try to use Environment.WSRequest to store my request xml message. I've defined both Environment.WSRequest and Environment.WSReply on the advanced properties of my HTTPRequest node. When the flow exits the HTTPRequest node, there is an error saying 'bad request'. What's strange is the fact that the HTTPResponseHeader is generated in my message and not in Environment.WSReply like I configured. According to me this is a bug in the HTTPRequest node.
When I do the same thing without using the Environment, but everything directly in InputRoot and OutputRoot, I get a correct response from my webservice. But because I want to save my original message, I do a CALL CopyEntireMessage() first and I try to manage my webservice request / reply in the Environment. The webservice is used to get some extra parameters / data, I can use to process my incoming message.
I'm using WBIMB 5.1.0. |
Why not park your regular message in the environment. You can then park the outputroot from the services call in the environment too... Allows you to do all you wanted...
BTW have you considered switching to version 6.1 ?
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
|