what do you mean when you say - 'i have created a mess'?
what more information do you need from me so that you can understand the problem better?
Main Topics
Browse All TopicsHi Experts,
I have created a webservice which uses a custom generated wsdl instead of pointing to the auto generated one from .NET. I have added an httpmodule within web.config and it automatically redirects to the custom wsdl based on url querysting when a request is made.
My problem is when creating a client within Visual Studio - add web reference i get the error: unable to download the following file from http://........?wsdl. do you want to skip these files and continue. while trying to run the disco command from command prompt also i an getting the error when it tries to download wsdl and the error message is: The document format is not recognized (the content type is 'text/html').
when i donot use the custom wsdl it works fine however i need to use one to specify some soap fault elements that are not done automatically by .NET.
can anybody advise either of the two options.
1. a solution to either successfully download the custom generated wsdl. or.
2. a solution to adding custom soap fault elements to the auto generated .NET wsdl as the auto generated one does not include them.
any help of pointers are really appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi TheLearnedOne,
My main objective is to be able to include the SOAP Fault elements within the WSDL which the .NET does not do automatically. Can you please guide me how i can achieve that. I achieved it by redirecting the wsdl to a custom wsdl modified by hand which included the SOAP faults but that WSDL cannot be downloaded by .NET when adding web reference on client.
Does the custom code only provide you with custom SOAP fault elements?
ASP.NET Web Service That Throws a Soap Exception with Custom Information
http://quickstarts.asp.net
I have found a solution to this by referring to
https://www.pluralsight.co
it explains how to refer to a custom wsdl file and the approach is different to what i was trying so using this i could also add the web reference. however what i figured out was that i had to change my project from being a web site to a web application. I had tested using a new sample project and will be implimenting it in the actual project later on.
thanks TheLearnedOne for your responses anyways.
Business Accounts
Answer for Membership
by: TheLearnedOnePosted on 2008-07-29 at 05:27:45ID: 22110710
It sounds like you have created a mess, but it is difficult to see from where I am sitting ;)