What is the best way to download all of the WSDL files exposed by a WCF service?

前端 未结 4 909
时光取名叫无心
时光取名叫无心 2020-12-31 02:00

What is the best way to download all of the WSDL files exposed by a WCF service?

For example, the root WSDL file references the following other WSDL files:



        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 02:35

    Meanwhile, disco.exe is considered obsolete technology by Microsoft.

    You can use svcutil.exe /t:metadata to achieve the same in the WCF age. Additional benefits are support for additional features, eg WS-Policy.

    Save schema from URL:

    svcutil /t:metadata http://host/pathtomy.svc?wsdl

    Save schema from assembly, eg in automated build:

    svcutil /t:metadata c:\wcfweb\pathToWcfServiceAssembly.dll

提交回复
热议问题