13.2. Designing Web Service Messages

The first step in implementing a document/literal Web service is to design the messages exchanged between client and service. To do this, you create an XSD schema describing each message. You can use a specialized XSD editor or any text editor, including Notepad. I used VS .NET's Schema editor because it provides an easy GUI for building the base schema structure and gives you access to the schema's text in case you want to do some manual editing. To use VS .NET's Schema editor, go to the File menu and choose New, File. In the New File dialog, select XML Schema as shown in Figure 13.1.

Figure 13.1. Creating a new schema

This gives you the Schema Designer with its toolbox and properties window as shown in ...

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.