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 » Calling a web service using a HTTPRequest node

Post new topic  Reply to topic
 Calling a web service using a HTTPRequest node « View previous topic :: View next topic » 
Author Message
chibban
PostPosted: Tue Jun 07, 2005 2:53 am    Post subject: Calling a web service using a HTTPRequest node Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 07, 2005 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
mqmatt
PostPosted: Tue Jun 07, 2005 4:31 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

That sounds fine.
Try HTTPInput -> HTTPRequest -> HTTPReply.
Back to top
View user's profile Send private message
chibban
PostPosted: Mon Jun 13, 2005 12:10 pm    Post subject: Reply with quote

Novice

Joined: 01 Jun 2005
Posts: 14

jefflowrey - What do u mean by "You might need to use Aggregate" ?
_________________
Thanks,
Sivan
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jun 13, 2005 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Thripura Sundari
PostPosted: Thu Jul 07, 2005 7:37 am    Post subject: Message flows doubts Reply with quote

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
View user's profile Send private message
waugh
PostPosted: Thu Jul 07, 2005 7:58 am    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 225

Dude,

The documentation on WBI Info Center will surely help you...
http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp
search for HttpInputNode and other nodes....

I did the same few days back to learn basics about these nodes...
Back to top
View user's profile Send private message
recallsunny
PostPosted: Tue Jul 12, 2005 5:32 am    Post subject: Reply with quote

Disciple

Joined: 15 Jun 2005
Posts: 163
Location: Massachusetts

Check out this Link for more info on using HTTPInput/Request nodes.

http://www-128.ibm.com/developerworks/websphere/library/techarticles/0311_withers/withers.html

Also As Jeff mentioned, if you need to use aggregation try it as mentioned in that PDF by passing the HTTP request Identifier within the message to the other flow. Its performance is better than using Aggregate Nodes.

Back to top
View user's profile Send private message
Thripura Sundari
PostPosted: Thu Jul 14, 2005 2:26 am    Post subject: Calling Web Service help - urgent Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Thu Jul 14, 2005 3:17 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Calling a web service using a HTTPRequest node
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.