Author |
Message
|
pottas |
Posted: Thu Jun 26, 2008 12:31 am Post subject: Dynamically setting HTTPRequest URL |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Guys,
I am running WMB 6.1
I have the following scenario:
SoapInputNode --> Compute --> HTTPRequestNode --> Compute --> SoapReply
The SoapInput Node receives a composite Service that contains a number of operations. Depending on the operation requested by the Customer, I need to invoke a specific back-end service in the HTTPRequest Node. I want to dynamically set the Web Service URL in the HTTPRequest based on the service requested from the Customer. Is that possible? |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Jun 26, 2008 1:41 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
yess...
you can set it in LocalEnvironment tree... _________________ Cheers |
|
Back to top |
|
 |
pottas |
Posted: Thu Jun 26, 2008 1:46 am Post subject: |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
OK, that's fine, thanks, but how do I then configure the HTTPRequest Node properties since the 'Web Service URL' property is mandatory. Do I put a 'dummy' value in it and then have some sort of way to dynamically re-populate it in runtime from the LocalEnvironment? |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Jun 26, 2008 2:14 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
|
Back to top |
|
 |
pottas |
Posted: Thu Jun 26, 2008 2:28 am Post subject: |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Thanks for upgrading my reading and searching skills...
As quoted from the manual:
Quote: |
The URL is of the format http://<address>[:port]/<function>; for example, http://localhost:7080/request. This URL can be specified statically in the HTTPRequest node parameters as a field in the message itself, or as a field in the LocalEnvironment. The data to be sent to the Web service can be the whole, or a portion of, the message tree, as specified in the HTTPRequest node properties. |
...do you perhaps know the field I need to configure in the LocalEnvironment tree? The manual is not that specific (could be that I need a bit more practice in reading 101...), also: do I default the 'Web Service URL' property to something stupid/specific? |
|
Back to top |
|
 |
mgk |
Posted: Thu Jun 26, 2008 4:19 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hi,
The local envrionment is the correct way to do this; setting:
Code: |
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = 'http://ibm.com/abc/'; |
to the value you want.
You will need to set the WebServiceURL on the node to a dummy / fallback url that will only ever be used if the LE is not set.
The docs for the request node for 6.1 explain this better, however, note that not all of the LE overrides specified for 6.1 will work with 6.0 (as some were only added in 6.1). The 6.1 docs are at:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac04595_.htm
Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
|