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

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

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