|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Invoking a WebService from ESQL?! |
« View previous topic :: View next topic » |
Author |
Message
|
TonyD |
Posted: Mon Jul 10, 2006 6:02 pm Post subject: Invoking a WebService from ESQL?! |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
I have a situation where an output XML message is being mapped from an input XML message that contains an array of elements of the same type. We iterate through the input array and for each we do a table lookup. Depending upon the value of a field returned from the lookup we must then call a webservice to provide additional information that must be also included in the output XML message.
Is there any way that I can invoke this web service request from within my ESQL, during the build of the output XML message? |
|
Back to top |
|
 |
mgk |
Posted: Tue Jul 11, 2006 12:54 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hi,
You cannot call a web service directly from ESQL, so you have two choices.
You could call a Java method from ESQL, and call you web service from there (but then you have to do all the work) or you could use propagate to send the message out to an HTTPRequestNode part way throught your ESQL code. You then configure the requestnode to store the response in the Environment (or you can use the InputLocalEnvironment (if the DELETE NONE V6 propagate clause is used)) and then you can see the response in the Compute node when the propagate returns.
Regards, _________________ 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 |
|
 |
MQRocks |
Posted: Thu Mar 03, 2011 9:17 am Post subject: calling webservice in ESQL |
|
|
Newbie
Joined: 27 Jan 2011 Posts: 6
|
I have the same issue , I have a flow in which I need to call the webservice and use the values from the Reply in the output message.
can you please be more specific how to do this with the 2nd choice that you mentioned. Thanks. |
|
Back to top |
|
 |
paintpot |
Posted: Thu Mar 03, 2011 9:55 am Post subject: |
|
|
Centurion
Joined: 19 Sep 2005 Posts: 112 Location: UK
|
You will get told off for resurrecting ancient posts.
You may wish to start a new topic, and define exactly what you are trying to do - e.g. one web service call, or many? in parallel or not, in parallel with the original processing or not? What transport and also what version of WMB?
A bit more info would help get a proper answer - note that strictly this isn't very hard, and can be found out from the existing help and technical samples... |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|