3.3. SOAP Message Formats

SOAP messages can have several different formats that differ in how the data inside <soapenv:Body> and potentially inside <soapenv:Header> is formatted.

To send data in a SOAP message, you must first serialize this data in a format that can be understood by the message recipient. For example, in Chapter 2 you learned how to use the System.Xml.Serialization namespace to easily serialize objects to an XML document. To send this XML document in a SOAP message, you can simply create the SOAP message and include this document within the <soapenv:Body>.[2] In this case, the message you end up with is said to follow document-style SOAP, has a literal payload, and is usually referred to as a document/literal message. Document ...

Get Real World XML Web Services: For VB and VB .NET Developers 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.