svcutil.exe - How to get WSDL

three-cups picture three-cups · Apr 6, 2011 · Viewed 27.8k times · Source

I'm working with a SOAP interface. The interface provider is having trouble getting me the full WSDL (long story). They have asked me to use svcutil.exe to generate everything I need. From what I can tell, svcutil.exe

  • requires windows - I don't have a windows box available
  • generates C# or VisualBasic

It'd be great if it could just spit out a WSDL. Or if there's something I can do from Linux, that would be great too.

Do I have any options from here, or do I just have to wait for the provider to get me the WSDL.

I guess the question is, given a URL and instructions to use svcutil.exe, how can I write code to use a SOAP service only using Linux?

Answer

grantk picture grantk · Apr 6, 2011

If using linux you could save it via curl

   curl url > service.wsdl

so to get a weatherForcast WSDL

   curl http://www.webservicex.net/WeatherForecast.asmx?WSDL > weatherForcast.wsdl