Click to See Complete Forum and Search --> : Webservice redirect


kallzz
July 19th, 2008, 08:52 PM
I have a webservice test.asmx which is located in test folder and has GetContents webmethod and . Inside

this directory i have one more directory test2 which has webservice test.asmx which has same webmethod GetContents().
whenever a webrequest GetContents() is made I have a httpmodule which is used for redirecting from test\test.asmx webservice to the

to the webservice test\test2\test.asmx based on a particular version.

But Server.Transfer("test2\test.asmx") is throwing the exception
"Error executing child request for test2\test.asmx."

or there is any approach through which i can redirect.

Iam using dot net framework 2.0.


Any help is appreciated.

Alsvha
July 20th, 2008, 01:42 AM
I have not tried anything like this, but I do not think you can use Server Transfer or similar.

I think you need to make a webreference to the other webservice and execute the call through that.