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 » web service URL of HTTPRequest node in runtime

Post new topic  Reply to topic
 web service URL of HTTPRequest node in runtime « View previous topic :: View next topic » 
Author Message
ethirajesh
PostPosted: Fri Jun 10, 2011 8:34 am    Post subject: web service URL of HTTPRequest node in runtime Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Fri Jun 10, 2011 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 10, 2011 9:13 am    Post subject: Reply with quote

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
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 » web service URL of HTTPRequest node in runtime
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.