0

WCF サービスの生成された WSDL ドキュメントから特定の型を削除するにはどうすればよいですか?

カスタム IWsdlExportExtension に、サービスの System.Web.Services.Description.ServiceDescription が既にあります。サービスの説明のどこでタイプを見つけることができますか?

ありがとう

4

1 に答える 1

1

When you're creating your .NET proxy class using the svcutil command line utility, you can define a command-line switch

/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

See the complete and freely available MSDN documentation for svcutil for more details.

于 2013-08-08T11:41:21.067 に答える