开发者

Adding description to WCF web service that appears in WSDL

should it be possible to tag DataContracts, DataMembers, ServiceContracts and Operation开发者_Go百科Contracts with a Description attribute, (System.ComponentModel.DescriptionAttribute) so that those descriptions appear in the WSDL to aid the developer or so an automatic documentation generation tool like TechWriter can use them in the documentation.

I went and added descriptions to my web services but they don't appear in the WSDL.

Is there any other way to do what I want?

Thanks


Because TechWriter relies on the descriptions being in the WSDL, you'll want to check out a WCF addon called WCFExtras that can make that happen. Instead of using attributes, WCFExtras uses the XML Comments from your source code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜