13.3. Implementing the Service
There are two options for implementing the messages we designed. First, you could create a WSDL document using the messages schemas from Listing 13.1, then run wsdl.exe –server on this WSDL to generate a Web service stub implementation. If you do this, you are essentially defining the interface (the WSDL) first, and then implementing it—which is exactly what I explained in Chapter 8.
Alternatively, you can code the Web service directly and use a combination of attributes on the service and on each Web method to ensure the emitted WSDL adheres to the message specification in Listing 13.1. In Chapter 8, I covered the interface-based approach, so I will take the second approach here. But if you are comfortable with ...
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.