Is it possible to use a custom WSDL with a .NET WebService? I would like to use a custom WSDL with my .NET WebService instead of the one generated by .NET as part of my WebService.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually there is a way to do this:
You can create your own WSDL (i.e. removing methods you don’t want to publish) and then make it available at a dedicated spot, this allows users to bind to it as normal.
To prevent users from just retrieving the default WSDL (
foo.asmx?wsdl) you have to flip a switch in the web.config of your web service:From the relevant MSDN section: