|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
web service URL of HTTPRequest node in runtime |
« View previous topic :: View next topic » |
Author |
Message
|
ethirajesh |
Posted: Fri Jun 10, 2011 8:34 am Post subject: web service URL of HTTPRequest node in runtime |
|
|
Apprentice
Joined: 04 Oct 2010 Posts: 46
|
Hi,
I Need to configure the Web Service URL property dynamically. To do this I had put a ESQL in compute node befor the HTTPRequest Node as below :
SET InputLocalEnvironment.Destination.HTTP.RequestURL = 'http://dev.virtualearth.net/REST/v1/Locations?countryRegion=US&adminDistrict=MN&locality=Chaska&postalCode=55318&addressLine=1672 Isabella Pkwy&o=xml&key=At4J7QZjpaAz5yeWi1OlxM6dvAAigzAxQvDaZruj0zE9uWEv4IFd-G6A3YJZhHKZ';
And set the Web Service URL property field as InputLocalEnvironment.Destination.HTTP.RequestURL.
But I am getting a Deployment Error as below :
'http://host[:port][/path]'.
The message broker received a configuration message containing the attribute value 'InputLocalEnvironment.Destination.HTTP.RequestURL', which is not valid for the target attribute 'URLSpecifier', on object 'RestSample.'. Valid values are 'http://host[:port][/path]'. This can be caused by a mismatch in levels between the Message Broker Toolkit and the broker. Or it can be caused as a result of a node defined by a user, or written by a third party, where the implementation library installed at the broker does not match the node definition held at the Message Broker Toolkit.
Ensure that the levels of code installed at the Message Broker Toolkit and broker are consistent. If they are, identify the supplier of the target object and report the problem to them. If this is IBM, contact your IBM support center. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jun 10, 2011 8:59 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
I see one other possible error.
The HTTP URL contains spaces. AFAIK (and my understanding is a bit shaky here) these should be changed to %20.
If I am wrong then I will stand corrected.
Also, you should be setting the OutputLocalEnvironment in the compute node. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jun 10, 2011 9:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
smdavies99 wrote: |
I see one other possible error.
The HTTP URL contains spaces. AFAIK (and my understanding is a bit shaky here) these should be changed to %20. |
This is correct, but the node *may* handle it for you.
The real issue is that the node property needs to be set to a validly formatted URL and NOT to a location in the logical message tree.
So setting the node property to "InputLocalEnvironment.Destination.HTTP.RequestURL" is not correct.
You could just set it to 'http://dev.virtualearth.net/". Then the value stored in (from the view of the compute node) OutputLocalEnvironment.Destination.HTTP.RequestURL will overwrite the node property. |
|
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
|
|
|
|