SOAP Differences

Before we finish our basic examination of SOAP and WSDL, a more detailed look at the relationship of SOAP, WSDL, and the XML Schema specification is in order. As mentioned earlier, the SOAP encodings used by .NET remoting differ from those used by Web services and the XML serializer.

To illustrate the differences between the two, we will take the same program and serialize it to disk and use it as a Web service. The program builds a circular list of two customer items. The two programs are found in the SOAP Differences directory.

The first program, Formatter, creates a circular list and then serializes it to disk using the .NET SOAP formatter.

 ' Formatter.vb Imports System.Web.Services Imports System.IO Imports System.Runtime.Serialization.Formatters.Soap ...

Get Application Development Using Visual Basic® and .NET 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.