468,257 Members | 1,429 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

Help - How to forward an asmx?wsdl request to an alternate WSDL URL?

I'm setting up a manually created WSDL file that defines the specifics
of the required elements, default values, etc. instead of using the
generated WSDL from the asmx?wsdl mechanism. Everything works with my
web service, but I would like to have some mechanism that forwards any
asmx?wsdl request to the manually created WSDL, to help guarantee that
a client is using the WSDL with the restrictions. I can't turn off all
documentation in the web.config file because there are other web
services that are still using he asmx?wsdl mechanism. Is there any way
to forward an asmx?wsdl request to a another URL? Any help would be
appreciated.

Thanks in advance

Apr 12 '06 #1
1 2080
protected void Application_BeginRequest(Object sender, EventArgs e)

{

string myUrl = Request.RawUrl;

myUrl = myUrl.ToUpper();

int myIndx = myUrl.IndexOf("WSDL");

if(myIndx > -1)

{

Response.WriteFile("MyWebService.wsdl");

Response.End();

}

}

mike
"jjouett" <jj*****@necam.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
I'm setting up a manually created WSDL file that defines the specifics
of the required elements, default values, etc. instead of using the
generated WSDL from the asmx?wsdl mechanism. Everything works with my
web service, but I would like to have some mechanism that forwards any
asmx?wsdl request to the manually created WSDL, to help guarantee that
a client is using the WSDL with the restrictions. I can't turn off all
documentation in the web.config file because there are other web
services that are still using he asmx?wsdl mechanism. Is there any way
to forward an asmx?wsdl request to a another URL? Any help would be
appreciated.

Thanks in advance

May 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rodney Garland | last post: by
3 posts views Thread by Ganesh Muthuvelu | last post: by
2 posts views Thread by Ken Crismon | last post: by
5 posts views Thread by =?Utf-8?B?a3Jpcw==?= | last post: by
6 posts views Thread by =?Utf-8?B?a3Jpcw==?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.