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

4.3. A WSDL Example

Let's take a look at a simple example Web service and the corresponding WSDL document. I created a VB 6 COM component called VB6Weather with one method:

Public Function GetTemperature(ByVal zipcode As String, _ 
                        ByVal celsius As Boolean) As Single
'code omitted

End Function

Then I ran the SOAP Toolkit's WSDL Generator to create the corresponding WSDL which is shown in Listing 4.1.

Listing 4.1. A WSDL document created by the SOAP Toolkit's WSDL Generator (VBWSBook\Chapter4\ExampleWSDLs\VB6Weather.wsdl)
 <?xml version='1.0' encoding='UTF-8' ?> <!-- Generated 08/16/01 by Microsoft SOAP Toolkit WSDL File Generator, Version 1.02.813.0 --> <definitions name ='VB6Weather' targetNamespace = 'http://tempuri.org/wsdl/' xmlns:wsdlns='http://tempuri.org/wsdl/' ...

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