Controlling XML Wire Format

Create and Consume an XML Web service: Control XML wire format for an XML Web service.

So far in this book I've been treating the SOAP format as if it were completely specified by the SOAP standard. But in fact the standard allows a good deal of flexibility in converting objects to XML messages. There are variations in formatting for both the parameters within the body of a SOAP message and for the format of the body itself:

  • Literal parameter formatting formats parameters according to an XSD schema. This is the default parameter formatting for .NET Web services.

  • Encoded parameter formatting formats parameters according to what are called the SOAP Section 5 encoding rules. These rules encode data type information directly ...

Get MCAD/MCSD Training Guide (70-320): Developing XML Web Services and Server Components with Visual C#™ .NET and the Microsoft .NET Framework 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.