13.7. A VB 6 Client

To test the Web service, I decided to build a VB 6 client with the SOAP Toolkit's low level API. The project includes a form and a class module that acts as the Web service proxy. Listing 13.7 shows the pertinent parts of the class module's code (the entire class is in the file WeatherClient.cls).

Listing 13.7. Implementing a VB 6 client using the SOAP Toolkit (VBWSClientCode\Chapter13\VB6Client\WeatherClient.cls)
 Option Explicit Private m_SessionHeader As String Private m_SessionId As String Private Const SERVICE_URL = "http://vbwsserver/vbwsbook/Chapter13/ Weather.asmx" 'Private Const SERVICE_URL = _ "http://www.learnxmlws.com/weather/Weather.asmx" Private m_Connector As SoapConnector30 Private m_UseProxy As Boolean Public ...

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.