如何从生成的 WCF 服务的 WSDL 文档中删除特定类型?
我已经在自定义 IWsdlExportExtension 中为我的服务提供了 System.Web.Services.Description.ServiceDescription。我在哪里可以找到服务描述中的类型?
谢谢
使用svcutil
命令行实用程序创建 .NET 代理类时,可以定义命令行开关
/excludeType:<type>
Specifies a fully-qualified or assembly-qualified type name
to be excluded from referenced contract types.
When using this switch together with /r from separate DLLs,
the full name of the XSD class is referenced.
Short Form: /et
有关详细信息,请参阅完整且免费提供的 MSDN 文档svcutil
。