Transmitting Data by Using MTOM

A SOAP message usually contains a message body, which is held in an XML format. This body contains the data for a request being transmitted to a service or the information being returned in response to a request back to a client application. The actual structure of the information in the message body is specified by the WSDL description of the operation, which is in turn derived from the operation contract you specify in your services. For example, the ProductsService service that you created in Chapter 1, defined the ChangeStockLevel operation in the IProductsService service contract like this:

[ServiceContract] public interface IProductsService { ... [OperationContract] bool ChangeStockLevel(string productNumber, ...

Get Microsoft® Windows® Communication Foundation Step by Step 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.