Understanding Service Contracts

Service contracts, one of the Cs in the ABCs of WCF, are what are advertised to the consumers of your services. This advertisement generally takes place through a schema and a contract definition that supports a standardized method for publishing the service contract (along with data contracts). Today, that schema is either a Web Services Description Language (WSDL) contract or a WS-MetadataExchange (MEX) contract. These formats are industry-supported, open specifications. These specifications are located at the following locations:

WSDL: http://www.w3.org/TR/wsdl
MEX: http://schemas.xmlsoap.org/ws/2004/09/mex/

WSDL AND WS-METADATAEXCHANGE

WSDL is an XML Schema-based description of supported operations and messages ...

Get Pro WCF: Practical Microsoft SOA Implementation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.