Author |
Message
|
ydsk |
Posted: Tue Aug 22, 2006 11:53 am Post subject: URGENT :setting URL in a msgflow when calling a webservice |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
I am facing a problem related to setting URL in my msgflow that uses HTTPRequest node to call a webservice.
The documentation says that if we set the URL via LocalEnvironment.Destination.HTTP.RequestURL in a Compute node before the HTTPRequest node, it will over-ride the URL setting on the HTTPRequest node.
But it's NOT working that way for me. No matter what I do It's always taking the URL on the HTTPRequest node.
Can someone pls help me.
I made sure that the Compute Mode property is set to 'All' on the compute node before the HTTPRequest node.
Thanks.
ydsk. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Aug 22, 2006 12:02 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Put a trace node between the compute node and the HTTPRequest.
Verify that the LocalEnvironment tree matches the path specified exactly.
And then verify that the contents are correct. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ydsk |
Posted: Wed Aug 23, 2006 8:35 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Yes, I verified the URL is correct using a trace node as suggested.
But somehow I still have the problem.
Pls help.
Thanks. |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Aug 23, 2006 8:57 pm Post subject: Re: URGENT :setting URL in a msgflow when calling a webservi |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi ydsk,
ydsk wrote: |
The documentation says that if we set the URL via LocalEnvironment.Destination.HTTP.RequestURL in a Compute node before the HTTPRequest node, it will over-ride the URL setting on the HTTPRequest node. |
Can we see the snippet of code please.
And also the settings in the compute node which is populating this URL in the evironment.
Regards. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 24, 2006 2:56 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I didn't say anything about whether the URL was correct or not. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
dilse |
Posted: Thu Aug 24, 2006 10:05 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
ydsk,
Can you try making compute node properties to set the Compute mode as 'LocalEnvironment and Message' instead of 'All'? and also make sure the URL that you put it in LocalEnvironment is reachable. _________________ DilSe..
Take life as it comes.. |
|
Back to top |
|
 |
ydsk |
Posted: Thu Aug 24, 2006 11:01 am Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Thank you all.
The issue got resolved.
The problem was with a setting on HTTPRequest node. I gave the location as InputRoot.XMLNS ( it should have worked because soap Envelope is the only child of InputRoot.XMLNS but don't know why it didn't ) and it was causing problems, and due to that the LocalEnvironment settings were ignored...not sure why.
I changed it to "Use whole input msg as request" on the HTTPRequest node, and the Compute MODE setting on Compute node is still 'All'.
Giving the URL in LocalEnvironment worked ( I gave a dummy URL on the HTTPRequest node of course).
Thanks.
ydsk. |
|
Back to top |
|
 |
|