[ACCEPTED]-svcutil.exe - How to get WSDL-svcutil.exe
If using linux you could save it via curl
curl url > service.wsdl
so 1 to get a weatherForcast WSDL
curl http://www.webservicex.net/WeatherForecast.asmx?WSDL > weatherForcast.wsdl
@grantk has already demonstrated the easiest method: if 18 you know where the WSDL is hosted, you can 17 simply fetch the document using your tool 16 of choice.
But as you asked specifically 15 about using SVCUtil: you could find a windows 14 box, use SVCUtil to fetch the WSDL, and 13 then return to your linux (and Java?) stack 12 and generate client proxies from that WSDL 11 to call the service using your web service 10 framework of choice.
If the target service 9 supports WS-MetadataExchange or XML Web Service Discovery, SVCUtil will locate and download 8 the WSDL for you: see this HowTo on Microsoft's MSDN 7 web site.
Using the weather forecast service 6 example that @grantk used, you can ask SVCUtil 5 to query the service and download metadata 4 as follows:
svcutil /t:metadata http://www.webservicex.net/WeatherForecast.asmx
(I'm sure there are similar 3 tools to do this using WS-MetadataExchange 2 in the linux world, but my experience is 1 with SVCUtil.)
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.