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

Post new topic  Reply to topic
 web service doubt « View previous topic :: View next topic » 
Author Message
547c547
PostPosted: Tue Sep 08, 2015 3:10 am    Post subject: web service doubt Reply with quote

Acolyte

Joined: 16 Jun 2014
Posts: 51

Can I receive a request a from web service and keep that request with flow for processing without replying webservice?

HTTPInput -compute -httpreply


HTTP -compute -no reply or acknowledgement


Is there any alternative for this.. Please clarify me?
Back to top
View user's profile Send private message
nelson
PostPosted: Tue Sep 08, 2015 4:17 am    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

You can do it, but the client who is requesting the WS, by default will receive a fault message that indicates that the timeout expired...
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 08, 2015 4:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

nelson wrote:
You can do it, but the client who is requesting the WS, by default will receive a fault message that indicates that the timeout expired...

Even on a fire and forget type operation?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
nelson
PostPosted: Tue Sep 08, 2015 4:47 am    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

fjb_saper wrote:
nelson wrote:
You can do it, but the client who is requesting the WS, by default will receive a fault message that indicates that the timeout expired...

Even on a fire and forget type operation?


Is this enough?

Code:
<binding ...>                  
   ...
   <operation name="UpdateStatus">
      <soap:operation delivery="fire-and-forget">
         <input message="inputMessage"/>
      </soap:operation>
   </operation>
</binding>


I've not tested this scenario...
Back to top
View user's profile Send private message
547c547
PostPosted: Tue Sep 08, 2015 5:16 am    Post subject: Reply with quote

Acolyte

Joined: 16 Jun 2014
Posts: 51

nelson wrote:
fjb_saper wrote:
nelson wrote:
You can do it, but the client who is requesting the WS, by default will receive a fault message that indicates that the timeout expired...

Even on a fire and forget type operation?


Is this enough?

Code:
<binding ...>                  
   ...
   <operation name="UpdateStatus">
      <soap:operation delivery="fire-and-forget">
         <input message="inputMessage"/>
      </soap:operation>
   </operation>
</binding>




I've not tested this scenario...



Can we do this with HTTP nodes if yes, how?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 08, 2015 5:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

nelson wrote:
You can do it, but the client who is requesting the WS, by default will receive a fault message that indicates that the timeout expired...


From an HTTPInput node (quoted by the OP)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
nelson
PostPosted: Tue Sep 08, 2015 5:39 am    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

Vitor wrote:
nelson wrote:
You can do it, but the client who is requesting the WS, by default will receive a fault message that indicates that the timeout expired...


From an HTTPInput node (quoted by the OP)?


http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac04565_.htm:

Quote:
If the Maximum client wait time expires, by default, the listener returns a fault message to the client to indicate that the timeout expired.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 08, 2015 5:51 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

nelson wrote:
Vitor wrote:
nelson wrote:
You can do it, but the client who is requesting the WS, by default will receive a fault message that indicates that the timeout expired...


From an HTTPInput node (quoted by the OP)?


http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac04565_.htm:

Quote:
If the Maximum client wait time expires, by default, the listener returns a fault message to the client to indicate that the timeout expired.


Granted, but if the flow operation is intended to be one-way why would you configure that?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 08, 2015 5:54 am    Post subject: Re: web service doubt Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

547c547 wrote:
Can I receive a request a from web service and keep that request with flow for processing without replying webservice?


Here's a question - if the "request" from the web service is not intended to receive a replay, what's going to receive the fault? The requestor will have closed the connection and moved on.

The model you're describing is variously described as a "fire and forget" or an "asynchronous" request.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 08, 2015 8:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Jogging my memory here....
Aren't you supposed to return a 204 success code? I'd have to lookup the codes but there is one for success no data... That's the one you're supposed to send back... for a fire and forget call.

So yes in any instance you'll need a reply node... for HTTP... Darn (unreliable) synchronous protocols...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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