I'm looking to generate a WSDL for offline use that someone can then use to create a service reference and generate a mock service to test their client against. Simple, right? Just use svcutil
to generate the files:
svcutil http://localhost:1234/MyService.svc /t:metadata
The developer of the client can then use soapUI to generate a mock service.
The trouble is the files contain references to http://localhost:1234/MyService.svc
, so soapUI fails when trying to create the mock service with the error:
Error loading [http://localhost:1234/MyService?wsdl=wsdl1]:
java.lang.Exception: Failed to load url;
http://localhost:1234/MyService.svc?wsdl=wsdl1, 0 -
I've found a reference to download WSDL files for offline use, but surely there must be some easier way of generating a complete self-contained offline WSDL without installing Java or requiring a live service?
Copyright Notice:Content Author:「SharpC」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18790241/offline-stand-alone-wsdl-generation-from-wcf-for-java-client