9.1. Serialization and Web Services

Chapter 2 introduced you to the process of serializing objects and primitives to XML. You learned how .NET's serialization attributes can be used to control this process. Serialization is an important part of Web services because it provides the mapping between the data structures you use in Visual Basic and XML messages.

It's important to understand that Web services receive and return XML only; everything else is an illusion performed by the tools you use. So the next time you create a Web method that returns a DataSet or an array of objects, remember that what you are really returning is XML. This XML is obtained by serializing the DataSet or the array of objects. The client never sees your array or your ...

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.