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 » Send request to JSP using HTTPRequest node

Post new topic  Reply to topic
 Send request to JSP using HTTPRequest node « View previous topic :: View next topic » 
Author Message
wilson_chow
PostPosted: Wed Jul 16, 2008 7:57 pm    Post subject: Send request to JSP using HTTPRequest node Reply with quote

Newbie

Joined: 16 Jul 2008
Posts: 2

My message flow needs to send a http request to a JSP using the POST method, and it needs to send with the form which containing the parameters.

In fact, my message flow needs to simulate the http request sent by the Internet browser.

I have tried to send the request by the HTTPRequest node using the code below,

SET OutputRoot.HTTPRequestHeader.POST = '/Gateway.asmx/PublishAuthenticatedCall';
SET OutputRoot.HTTPRequestHeader.Host = '209.162.186.60';
SET OutputRoot.HTTPRequestHeader."Content-Type" = 'application/x-www-form-urlencoded';

However, I still can't post the form to the JSP. Does anybody know how to handle this? and how to write the code in ESQL to form the form?

Thanks in advance.
Back to top
View user's profile Send private message
sridhsri
PostPosted: Wed Jul 16, 2008 8:36 pm    Post subject: Reply with quote

Master

Joined: 19 Jun 2008
Posts: 297

I haven't done this. But, I would try creating a JSP Page capable of sending such a request. After that is successful, I would re-route that request to a HTTPInput node. Then you could the message flow debugger to find out the format and HTTP Headers. That way I would know what request is expected by the browser. Then I would change the compute before the HTTPRequest accordingly.
Back to top
View user's profile Send private message
wilson_chow
PostPosted: Wed Jul 16, 2008 10:22 pm    Post subject: Reply with quote

Newbie

Joined: 16 Jul 2008
Posts: 2

I understand what you mean, and I have already tried the method you have provided.

However, the HTTPInput node parsed the content of the request as BLOB. I also tried to pass that BLOB to the HTTPRequest Node, but, the JSP still cannot detect the content passed from the HTTPRequest Node.
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 » Send request to JSP 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.