Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to document a WCF web-service in a technical spec?

Other than pasting a WDSL in the tech spec, what are the recommended ways to document a WCF web-service before you begin coding?

like image 231
Loscas Avatar asked Dec 30 '22 09:12

Loscas


2 Answers

We recently published a WCF based SOAP interface for third parties to integrate against. For each method we provided the following:

  • Method name
  • Request example (wire format dump)
  • Request parameters explanation
  • Response example (wire format dump)
  • Request parameters explanation
  • Caveats (gotchas)
  • History

We also provide the WSDL. You may want to use Microsoft's Disco.exe for doing this. See also a related question about obtaining the WSDL.

like image 111
Thomas Bratt Avatar answered Jan 07 '23 03:01

Thomas Bratt


Document the contract interface as you would document any other interface. Describe the operations, pre-conditions, post-conditions, reasons for throwing a fault, etc.

like image 37
Dave Dunkin Avatar answered Jan 07 '23 03:01

Dave Dunkin