Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jjouett - 12 Apr 2006 23:33 GMT
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
Miso - 10 May 2006 08:16 GMT
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

> I'm setting up a manually created WSDL file that defines the specifics
> of the required elements, default values, etc. instead of using the
[quoted text clipped - 8 lines]
>
> Thanks in advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.