How to document WCF web service in technical specification?

Besides inserting WDSL into the technical specification, what are the recommended ways to document the WCF web service before starting coding?

+4
source share
5 answers

We recently published a WCF-based SOAP interface for third-party integration. For each method, we presented the following:

  • Method name
  • Request example (dump format posting)
  • Request Request Parameters
  • Response example (transfer format dump)
  • Request Request Parameters
  • Cautions (gotchas)
  • History

We also provide WSDL. You can use Microsoft Disco.exe for this. See also the related issue of obtaining WSDL .

+6
source

Document the contract interface as you are documenting any other interface. Describe the operations, preconditions, post-conditions, reasons for the error, etc.

+2
source

Also, if you are using a MessageContracts document, why are you using them ... believe me, you ask why you did this :)

+1
source
  • Describe service endpoints and available protocols / bindings. e.g. Https, RESTful?
  • Security features, authentication, authorization and encryption.
  • Explain options for using parameters in the operation contract.
  • Hosting, IIS, WindowsService or console application.
  • Service execution.
+1
source

Source: https://habr.com/ru/post/1277630/


All Articles