|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Send request to JSP using HTTPRequest node |
« View previous topic :: View next topic » |
Author |
Message
|
wilson_chow |
Posted: Wed Jul 16, 2008 7:57 pm Post subject: Send request to JSP using HTTPRequest node |
|
|
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 |
|
 |
sridhsri |
Posted: Wed Jul 16, 2008 8:36 pm Post subject: |
|
|
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 |
|
 |
wilson_chow |
Posted: Wed Jul 16, 2008 10:22 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|