Author |
Message
|
chibban |
Posted: Tue Jun 07, 2005 2:53 am Post subject: Calling a web service using a HTTPRequest node |
|
|
Novice
Joined: 01 Jun 2005 Posts: 14
|
Hello,
I'm writing a message flow which suppose to be called as a web service and to call another web service. My question is, after I invoke the web service from the message flow, how can I return its HHTP reply to the original caller ? (i.e. the one who invoked me as a webservice).
Should I connect a HTTP reply node to the out terminal of the HTTP request (used to call the web service) ?
Is there any other thing I need to take care of ? _________________ Thanks,
Sivan |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 07, 2005 3:45 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So, you need to:
Recieve a Request -> Make a Request -> Receive a Reply -> Send A Reply
?
Then write your flow this way.
You might need to use Aggregate. I forget if the HTTP* Nodes will let you do this in the same session. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mqmatt |
Posted: Tue Jun 07, 2005 4:31 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
That sounds fine.
Try HTTPInput -> HTTPRequest -> HTTPReply. |
|
Back to top |
|
 |
chibban |
Posted: Mon Jun 13, 2005 12:10 pm Post subject: |
|
|
Novice
Joined: 01 Jun 2005 Posts: 14
|
jefflowrey - What do u mean by "You might need to use Aggregate" ? _________________ Thanks,
Sivan |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 13, 2005 12:41 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
chibban wrote: |
jefflowrey - What do u mean by "You might need to use Aggregate" ? |
I think MQMatt has said that you don't.
But what I meant was, if this were an MQ flow instead of an HTTP flow - then the response would not come in the same instance of the message flow as the request went out.
So you would have to use the Aggregate* nodes in order to associate the request with the response. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Thripura Sundari |
Posted: Thu Jul 07, 2005 7:37 am Post subject: Message flows doubts |
|
|
Acolyte
Joined: 13 Jun 2005 Posts: 57 Location: Bangalore, India
|
Hi all,
I am new to Web Services and WBI. I have a basic question.
What is the difference between a HTTP Input node and a HTTP Request Node?
Also, What is the meaning of Routing a web service through a message flow?
As far as my understanding goes, if I have an application which is exposed as a web service, then, in order to request data from it by sending some parameters (and specifying the methods, etc...), I invoke a web service. For this, I need a HTTP Request and a HTTP Reply.
Can the message flow be like this:
Input -> HTTP Request -> HTTP Reply ?
With the input node, I will speciy what are the parameters required to invoke the web service. I will specify the url in the HTTP Request node and then, get the reply in the HTTP Reply node.
Am I right? If I am not, could you please explain?
For the kind of system that we have, I need to know how I can make a web service call the Message flow which will inturn call a web service and provide the response from the second web service to the first web service.
If you could help me with specific examples, it would be really nice of you.
Regards,
Thripura Sundari |
|
Back to top |
|
 |
waugh |
Posted: Thu Jul 07, 2005 7:58 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
|
Back to top |
|
 |
recallsunny |
Posted: Tue Jul 12, 2005 5:32 am Post subject: |
|
|
 Disciple
Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts
|
|
Back to top |
|
 |
Thripura Sundari |
Posted: Thu Jul 14, 2005 2:26 am Post subject: Calling Web Service help - urgent |
|
|
Acolyte
Joined: 13 Jun 2005 Posts: 57 Location: Bangalore, India
|
Hi all,
I need to call a web service (WS1), take some parameters from it, invoke another web service(WS2), do data transformation and reply to the first web service.
First, I need to just get the parameters from the first web service. I have the web service running in my system, but how do I get the web service connect to the Message Broker. I have given the url in the HTTP Input node, but my message flow doesnt even start. I am not able to debug. When I invoke WS1 (which is in .NET) using the invoke command after providing the parameters, I get an xml as per the web methods in the web service, but nothing at all happens in the WBI.
Now, about the second web service WS2, just to see if it's being accessed (or invoked), I tried a simple message flow where I gave MQInput -> HTTPRequest->MQOutput. I even gave error and failure MQOutput nodes, thus providing an MQoutput node for all three output terminals in the HTTPRequest. But, when I put the message in the input Q, it goes to the Error and that something is wrong in the input message, but the XML format of the input message is correct. i had also provided XML as the input message domain.
Please tell me where I might be going wrong.
Regards,
Thripura Sundari |
|
Back to top |
|
 |
wschutz |
Posted: Thu Jul 14, 2005 3:17 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
May I also suggest looking at supportpac IA81 WebSphere Business Integration Message Broker and Web Services. _________________ -wayne |
|
Back to top |
|
 |
|