8.2. Implementing an Interface

Whether you define the interfaces yourself or you work with interfaces defined by someone else, you'll eventually want to implement them. Although you can read the WSDL document and write all the corresponding VB code from scratch, including the WebServiceBinding attribute, something tells me you're not going to want to do this. Instead, you can use wsdl.exe with the /server switch to tell it you want to create a service that implements the specified interface. wsdl.exe takes the WSDL document's URL, the language to use for generated code, and the output file name:

wsdl.exe /server http://VBWSServer/vbwsbook/Chapter8/Single-Interface.wsdl /l:VB /out
:CSupplier.vb 

Listing 8.3 shows the interesting part of the resulting ...

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.