|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Newbie question on Version 6 http nodes |
« View previous topic :: View next topic » |
Author |
Message
|
yonny |
Posted: Tue Oct 13, 2009 4:01 pm Post subject: Newbie question on Version 6 http nodes |
|
|
 Apprentice
Joined: 08 Jul 2001 Posts: 49 Location: Santo Domingo
|
Hello all, I was hopping someone could help me with a newbie question regarding WMB 6. My last post here was from 2005, I am a user of these products since mqseries and integrator 1.1 (1999), and did some flows on WMB 5, but the new stuff on Version 6 is unknown for me.
I need to send a request to a Service which will return an xml. I have done this before where the request was also an xml message, but, for this case the "request message" is part of the url. Something like this:
Code: |
https://www.somesite.com/services/someservice.dll?PARAM1=ABCDEF¶m2=XML001&Param2=XXXXX&ParamUser=XXXX&ParamPaswd=XXXX&ParamNumber=99999999999 |
All in one line. I changed the site name and the names of the params, but the real URL is something very similar.
Any help about the correct Node to use inside the message flow? How do I pass the parameters to the service?
Too basic question, right? I hope to recieve answers other than only "read the documentation".
Thank you very much,
Yonny. |
|
Back to top |
|
 |
ovasquez |
Posted: Tue Oct 13, 2009 7:53 pm Post subject: |
|
|
 Centurion
Joined: 09 Dec 2005 Posts: 141 Location: Lima, Peru
|
Read the documentation
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac04595_.htm
. . .
QueryString Allows the setting of outbound query string parameters. Each parameter must be be set individually.
For example:
SET OutputLocalEnvironment.Destination.HTTP.QueryString.param1 = 'my"Value"1';
SET OutputLocalEnvironment.Destination.HTTP.QueryString.param2 = 'my"Value"2';
The above ESQL results in the following query string being encoded (according to http://tools.ietf.org/html/rfc3986) and sent with the outbound request:
?param1=my%22Value%221¶m2= my%22Value%222
If the destination URL already has one or more query parameters, additional parameters specified here are appended to the end of the existing list.
. . . _________________ Oscar Vásquez Flores |
|
Back to top |
|
 |
mqmatt |
Posted: Wed Oct 14, 2009 8:22 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
The queryString capabilities were only added in v6.1, so those parameters might not be of use.
MGK might want to comment on your options  |
|
Back to top |
|
 |
yonny |
Posted: Wed Oct 14, 2009 5:45 pm Post subject: |
|
|
 Apprentice
Joined: 08 Jul 2001 Posts: 49 Location: Santo Domingo
|
Could not test your solution yet, thank you.
The server where my broker is running still has no access to the WebServices' URL. The communications crew is working on it.
Best regards,
Yonny.
Edit: The version we are running is 6.1, so, the code suggested should work ok. |
|
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
|
|
|
|