Author |
Message
|
ganu |
Posted: Thu Mar 15, 2007 8:34 am Post subject: Propogate and HTTP Request nodes |
|
|
Newbie
Joined: 15 Mar 2007 Posts: 2
|
is it possible to invoke more than one web service from a single HTTPRequest node. (URL can be common for both requests, only the SOAP message body differs each time)
Say I want to invoke two services and consolidate , then send the reply.
The reason I cant use two HTTPRequest nodes in a sequence , is because I am using the same message flow for another message type that requires only one invocation.
Can propagate be used in a node before the HtttpRequest or something!!????? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 15, 2007 9:24 am Post subject: Re: Propogate and HTTP Request nodes |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
ganu wrote: |
Can propagate be used in a node before the HtttpRequest |
Yes
ganu wrote: |
or something!!????? |
Yes
And the answer to the almost inevitable follow-up is "The best one to use is the best one for you". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Mar 15, 2007 9:28 am Post subject: Re: Propogate and HTTP Request nodes |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
ganu wrote: |
is it possible to invoke more than one web service from a single HTTPRequest node. (URL can be common for both requests, only the SOAP message body differs each time)
Say I want to invoke two services and consolidate , then send the reply.
The reason I cant use two HTTPRequest nodes in a sequence , is because I am using the same message flow for another message type that requires only one invocation.
Can propagate be used in a node before the HtttpRequest or something!!????? |
I had similar case.
You can use for this Aggregation node and 2 separate HTTPRequst nodes. _________________ Marcin |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 15, 2007 9:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Since HTTPRequest node is synchronous (because HTTP is synchronous) you don't need Aggregation.
Compute1(propagates twice) -> HTTPRequest->Compute2(copies result to environment, returns false if first response)->Compute3(assembles)->Reply _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Mar 15, 2007 9:41 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
jefflowrey wrote: |
Since HTTPRequest node is synchronous (because HTTP is synchronous) you don't need Aggregation.
Compute1(propagates twice) -> HTTPRequest->Compute2(copies result to environment, returns false if first response)->Compute3(assembles)->Reply |
Hm. Now I think it's definitely better way.
I haven't considered this option.
I will have to test it. _________________ Marcin |
|
Back to top |
|
 |
ganu |
Posted: Thu Mar 15, 2007 9:44 am Post subject: |
|
|
Newbie
Joined: 15 Mar 2007 Posts: 2
|
jefflowrey wrote: |
Since HTTPRequest node is synchronous (because HTTP is synchronous) you don't need Aggregation.
Compute1(propagates twice) -> HTTPRequest->Compute2(copies result to environment, returns false if first response)->Compute3(assembles)->Reply |
Thanks Jeff.. , that was the node seq i wanted to see , hope it works in practice just as good!! |
|
Back to top |
|
 |
Bill.Matthews |
Posted: Fri Mar 16, 2007 5:34 am Post subject: |
|
|
 Master
Joined: 23 Sep 2003 Posts: 232 Location: IBM (Retired)
|
ganu,
Here is a whitepaper on developerworks that I wrote about a similar situation.
http://www-128.ibm.com/developerworks/webservices/library/ws-soa-msgbroker/
After the HTTPRequest, we saved what was needed in the Environment. We also made use of the Propagate from a compute node to return the updated message back to the caller. In this case, the caller wanted the identical MQMD returned.
The secenario could easily be extended to calling multiple HTTPRequests.
With a Propagate to Label ... the number of HTTPRequests is not bounded by the number of out terminals. _________________ Bill Matthews |
|
Back to top |
|
 |
|