O'Reilly logo

Real World XML Web Services: For VB and VB .NET Developers by Yasser Shohoud

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required