Problem with WebServices WSDL auto gen feature
Janis Braslins <[email protected]> Fri, 28 Jun 2002 09:36:50 -0700
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Message-ID | <DOTNET%[email protected]> |
Greetings,
In order to hide WSDL as well as Docs for our private web service, we've
attemed add following modifications to our web service Web.Config file:
<protocols>
<remove name="HttpGet"/>
<remove name="HttpPost"/>
</protocols>
The example above works fine, but as soon as we remove Documentation
protocol, we get an error:
<protocols>
<remove name="HttpGet"/>
<remove name="HttpPost"/>
<remove name="Documentation/">
</protocols>
Results in:
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Request format is unrecognized.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler
(Type type, HttpContext context, HttpRequest request, HttpResponse
response) +388
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler
(HttpContext context, String verb, String url, String filePath) +34
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +174
System.Web.MapHandlerExecutionStep.Execute() +78
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +173
Any ideas why this is happening? From reading numerous post on deja.com as
well as this boards, it seems like the solution should work and nobody
seems to experience the same problem.
Thank you for your help.
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.