Kurt
Kurt

Reputation: 4517

Adding description to WCF web service that appears in WSDL

should it be possible to tag DataContracts, DataMembers, ServiceContracts and OperationContracts 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

Upvotes: 4

Views: 2578

Answers (1)

madisonw
madisonw

Reputation: 836

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.

Upvotes: 2

Related Questions