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 IndexWebSphere Message Broker Supporthtml request and response on the same screen

Post new topicReply to topic
html request and response on the same screen View previous topic :: View next topic
Author Message
paustin_ours
PostPosted: Wed Nov 15, 2017 3:10 pm Post subject: html request and response on the same screen Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 622
Location: columbus,oh

I have a very simple html page with forms, when i fill in a few fields and click submit, it invokes a web service on my broker. I see the http request come in.

I have a following compute node that only does copy entire message and then a httpreply node.

I am trying to get the http response in the same browser where i submitted the request.

i eventually want to get a http request in, use the form data to form a response and then reply back on the same browser screen.

this link seems a little confusing

https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac20450_.htm

Quote:

If you design a message flow that includes both an HTTPInput and an HTTPReply node, the identifier value is set into the local environment by the HTTPInput node, but the HTTPReply node does not use it. Therefore, if your message flow includes both HTTP nodes and a Compute node in the same flow, you do not have to include the local environment tree when you specify which components of the message tree are copied from input message to output message by the Compute node (the Compute mode property)


if it does not look for the request identifier in the local environment variable, should i pass it along some other way?

currently the response is coming back from the flow as a file for me to open in windows a pop comes up asking me to open the file. i can then open in IE and i see the source to be a html block but i am trying to get this to show up on the same screen where i submitted the request.


Last edited by paustin_ours on Wed Nov 15, 2017 4:49 pm; edited 2 times in total
Back to top
View user's profile Send private message Yahoo Messenger
timber
PostPosted: Wed Nov 15, 2017 3:40 pm Post subject: Reply with quote

Sentinel

Joined: 25 Aug 2015
Posts: 855

Quote:
it says when i use httpinput, compute and http reply all in the same flow i cannot change the incoming data?
I don't see anything on that page that says that. Please fix up your broken link and then quote the piece of text that you are referring to.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Wed Nov 15, 2017 6:46 pm Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 622
Location: columbus,oh

Wonder if I have to use GET instead of POST
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Nov 16, 2017 6:05 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 25247
Location: Ohio, USA

paustin_ours wrote:
Wonder if I have to use GET instead of POST


No you don't.

I'm with @timber - I don't see anything on that page that says what you seem to think it's saying.

paustin_ours wrote:
currently the response is coming back from the flow as a file for me to open in windows a pop comes up asking me to open the file


Then this whole business with the request identifier is a red herring - the flow has correctly identified your session using the identifier and sent the output to you. If it's not being rendered as a page by IE but presented as a file then something in the response you're sending is making IE behave like that.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Thu Nov 16, 2017 6:44 am Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 622
Location: columbus,oh

I feel stupid..had to add the reply header. been out of touch with development for while...thanks!
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Nov 16, 2017 7:03 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 25247
Location: Ohio, USA

paustin_ours wrote:
I feel stupid..had to add the reply header. been out of touch with development for while...thanks!




It's happened to us all at one time or another.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker Supporthtml request and response on the same screen
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.