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

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

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