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 » One way operation using HTTPRequest node

Post new topic  Reply to topic
 One way operation using HTTPRequest node « View previous topic :: View next topic » 
Author Message
ghoshly
PostPosted: Mon May 26, 2014 6:10 am    Post subject: One way operation using HTTPRequest node Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 333

Hello,

We are using WMB 8.0.0.2 in Windows & AIX.

I am trying to use HTTP Request node to call a end point as one way call without waiting for its response. Basically we need to call a JSON based REST service.
Similar SOAP based web services we were able to invoke using SOAP Request node as per below syntax.
Code:
SET OutputLocalEnvironment.Destination.SOAP.Request.Gateway.OneWay = 'true';


Though even if we change SOAP to HTTP to set value before the request node, its failing after the timeout period.

Please guide if it is possible and how to proceed.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon May 26, 2014 9:44 am    Post subject: Reply with quote

Grand High Poobah

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

You need to make sure that your http return code is not 200.
A 200 code means success with a payload.
Check the spec but IIRC you need a 204 code on a one way acknowledgement.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
ghoshly
PostPosted: Wed May 28, 2014 5:35 am    Post subject: Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 333

Hello,

We are trying with the code
Code:
SET OutputLocalEnvironment.Destination.HTTP.Request.Gateway.OneWay = 'true';


Though it seems it has no effect on HTTPRequest node.
In case the end point service returns 200 (OK) with payload or 202 ( Accepted) or even 204 (Acknowledgement) without payload in all these cases, HTTPRequest node is accepting without any error.

Hence we can't say that we are calling strictly One-way.
Please let me know if it is clear or not.
Back to top
View user's profile Send private message
jsware
PostPosted: Wed May 28, 2014 8:59 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

There's no such thing as one-way with the HTTP protocol. You will always get a protocol response (or no response which means something bad happened that means no response could be returned or that the request never made it - you're into an in-doubt scenario)

So at a protocol level, its always request/response.

But at an application level, you get no data in the response, just a 20x which means logically its one-way (no response data, just protocol acknowledgement).
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
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 » One way operation using 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.