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