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 » Asynchronous web service

Post new topic  Reply to topic
 Asynchronous web service « View previous topic :: View next topic » 
Author Message
vennela
PostPosted: Mon Jan 23, 2006 10:01 pm    Post subject: Asynchronous web service Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I want to expose a message flow as webservice. I want that to be like a 'fire and forget' kind of invocation. I mean I'll send a HTTP/SOAP message and I will not expect any reply. Can I do this in broker. Maybe this doesn't make sense but is a HTTPReply a must.

From the manual:


Quote:
If you include an HTTPInput node in a message flow, you must either include an HTTPReply node in the same flow, or pass the message to another flow that includes an HTTPReply node (for example, through an MQOutput node to a second flow that starts with an MQInput node).


HTTPInputNode
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mgk
PostPosted: Tue Jan 24, 2006 1:48 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi,

HTTP is a Request-Reply protocol, which is why the nodes have to be paired. If you don't have a reply with a Reply node, a "Messageflow Timed Out" message will be sent back to the client (when the Input node timeout expires).

However, you can wire your flow such that it sends a reply from a Reply Node immediately after a message is received be an Input node. This fits the request/reply model and allows your client to know the message was received by the flow. However, then your flow can carry on processing and perform the real work of the flow, without having to send a "real" reply when it has finished processing.

If this does not fit with what you are trying to achieve, have you thoughtt about SOAP over JMS or MQ, which should fit your requirements better.


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
View user's profile Send private message
vennela
PostPosted: Tue Jan 24, 2006 10:32 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Thanks for the response. Very useful.

Quote:
If this does not fit with what you are trying to achieve, have you thoughtt about SOAP over JMS or MQ, which should fit your requirements better.


Definitely this is a much better alternative.

I don't have any requirement yet, but I am exploring on the options MB has to host webservices.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Tue Jan 24, 2006 12:06 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

This has always been one of the features of webservices that has been a bit of a downside compared to MQ.

HTTP is stateless (like MQ properly is), and synchronous. Just pretend you're always in request/reply mode and you can do HTTP.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
thejavapill
PostPosted: Tue Jan 24, 2006 1:48 pm    Post subject: Check out Axis2 for Async Messaging ! Reply with quote

Newbie

Joined: 24 Jan 2006
Posts: 7
Location: Ca

Axis2 allows you to do async messaging check it out :

http://ws.apache.org/axis2/index.html
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Asynchronous web service
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.