Search code examples
c#web-servicesvisual-studio-2010soapwsdl

SOAP Web Service / VS2010 Add Service Reference


I am having problems gaining access to a clients web service online.

If I have the wsdl file, can I do "something" in VS2010 with it so I can add it as a reference and start my C# coding?

Thanks Paul


Solution

  • When you go to "Add Service Reference", the textbox that allows you to enter a URL, can also take a path on your local filesystem to a wsdl.

    Additionally, while not the optimal route, you can also use the wsdl.exe/svcutil.exe utility (bundled with VS) to generate a proxy class. Adding a reference is the better way to go, but this is an additional option.