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 » Required any example for HTTPAsync Request - Response

Post new topic  Reply to topic Goto page 1, 2  Next
 Required any example for HTTPAsync Request - Response « View previous topic :: View next topic » 
Author Message
mr2kn
PostPosted: Fri Mar 04, 2016 6:33 am    Post subject: Required any example for HTTPAsync Request - Response Reply with quote

Apprentice

Joined: 26 Jan 2016
Posts: 46

Hi,
Im trying to do create an flow for HTTPAsync Request - Response in IIB9 scenario and getting difficult, I check in the info center I did not found and found on SOAPAsyncRequest-Response same way I tried its not working may be some properties need to set not sure,
something like
soap input --- compute ---httpasyncrequest(along with header need to pass some more details to it)
httpasyncresponse --- compute --- soapreply

Please let me know any details I can try and very much appreciated

thank you
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 04, 2016 6:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Have you looked at the Samples?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
mr2kn
PostPosted: Fri Mar 04, 2016 6:53 am    Post subject: Reply with quote

Apprentice

Joined: 26 Jan 2016
Posts: 46

Yes, I have looked at samples, and I found soapasyncrequest-response not the httpasyncrequest-response and I tried to implement with reference soap but it did not worked,
thank you for looking
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 04, 2016 8:48 am    Post subject: Reply with quote

Grand High Poobah

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

mr2kn wrote:
Yes, I have looked at samples, and I found soapasyncrequest-response not the httpasyncrequest-response and I tried to implement with reference soap but it did not worked,
thank you for looking


What exactly did not work? You realize that you need to check the soap ws-addressing in the SOAP Input Node for it to support SOAP Asynch operations?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Mar 04, 2016 8:50 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Is the control flow of an asynchronous process any different regardless of the transport used?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
mr2kn
PostPosted: Fri Mar 04, 2016 8:58 am    Post subject: Reply with quote

Apprentice

Joined: 26 Jan 2016
Posts: 46

sorry, I did not worked much on the async process, and now im trying to implement and I select the ws-addressing option for the soap-input node
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 04, 2016 9:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What is the basic control flow of an asynchronous process?

How is that shown in the sample?

How would that change with the transport being used?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
mr2kn
PostPosted: Fri Mar 04, 2016 9:46 am    Post subject: Reply with quote

Apprentice

Joined: 26 Jan 2016
Posts: 46

for async process is like without for the response and response will coming in different threads and which will be identified by unique identifier from the properties
in the sample they shown soapasync process like
MQinput --- compute -- soap async request
soapsync response -- compute -- mq output

transport being used by HTTP post method
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 04, 2016 10:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mr2kn wrote:
for async process is like without for the response and response will coming in different threads and which will be identified by unique identifier from the properties
in the sample they shown soapasync process like
MQinput --- compute -- soap async request
soapsync response -- compute -- mq output

transport being used by HTTP post method


And does that change anything significant?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
mr2kn
PostPosted: Fri Mar 04, 2016 11:40 am    Post subject: Reply with quote

Apprentice

Joined: 26 Jan 2016
Posts: 46

between httpasync and soapasync node properties are different and most of same I mean basic details
Back to top
View user's profile Send private message
mr2kn
PostPosted: Fri Mar 04, 2016 1:53 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Jan 2016
Posts: 46

I tried like this flow

soap input --- compute --- soapasyncrequest

soapasyncresponse --- compute1 ---soapreply

in the compute node I have written like this but in the URL specifier its not taking the correct URL path

Compute code:
Code:

CALL CopyEntireMessage();
SET OutputLocalEnvironment = InputLocalEnvironment;
      
DECLARE envRef REFERENCE TO Environment.Variables;

SET envRef.userName = InputRoot.XMLNSC.ns12:processRequest.Request.CommonData.userName;

SET envRef.password = InputRoot.XMLNSC.ns12:processRequest.Request.CommonData.password;      
SET envRef.Key = InputRoot.XMLNSC.ns12:processRequest.Request.CommonData.Key;

/* Login variable details */
      DECLARE finalDestinationUrl CHAR;
      DECLARE inputUrl CHAR;
      DECLARE requestMethod CHAR;
      DECLARE parameters CHAR;
      
      
/* Login construct */
      SET inputUrl = InputRoot.HTTPInputHeader."X-Original-HTTP-Command";
       SET requestMethod = SUBSTRING(inputUrl BEFORE ' http://');
       SET inputUrl = SUBSTRING(inputUrl BEFORE ' HTTP/');
       SET finalDestinationUrl = HTTPLogin||'Login.json?&userName='||envRef.userName||'&password='||envRef.password||                                                                                                           '&Key='||envRef.appKey||                                                                                                           SUBSTRING(inputUrl AFTER '7080');
       
                                                                                                  
SET OutputRoot.HTTPRequestHeader."X-Original-HTTP-URL" = finalDestinationUrl;
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = requestMethod;

RETURN TRUE;


hope this help me where I went wrong
thank you
Back to top
View user's profile Send private message
timber
PostPosted: Sat Mar 05, 2016 2:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Please edit the previous post ( using the Edit button ) and add code tags around your ESQL ( using the Code button ). It makes the code a lot easier to read.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Mar 05, 2016 6:38 am    Post subject: Reply with quote

Grand High Poobah

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

So if you put a trace node in front of your request node asking for ${Root} and ${LocalEnvironment}
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mr2kn
PostPosted: Mon Mar 07, 2016 6:57 am    Post subject: Reply with quote

Apprentice

Joined: 26 Jan 2016
Posts: 46

I put the trace log with ${Root},${LocalEnvironment} im able to see the proper URL and also while asyncresponse time its getting catch terminal because of reply identifier
not sure where I missed and need to get correct
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Mar 07, 2016 7:38 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What changes if you replace the soapasynch nodes for httpasynch nodes?

Is it *anything* other than the code in your flow?

Don't you want to use the httpasynch nodes?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Required any example for HTTPAsync Request - Response
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.