问题
Im creating a WCF Service application, I dnt want to give the URL to the client use rather I need to give a Single WSDL file.
How I can do it?
回答1:
svcutil will generate its if you need it to. Check out http://msdn.microsoft.com/en-us/library/aa702581.aspx for details.
回答2:
C:>svcutil.exe /t:metadata http:/localhost:1234/testservice.svc?singleWsdl
回答3:
Use disco.exe http:///service.svc Will be generate .disco, .wsdl and .xsd (optional more than one).
I think disco.exe better than svcutil.exe
来源:https://stackoverflow.com/questions/4178350/is-there-any-way-i-can-create-a-wsdl-file-from-wcf-service-application