C# .Net Client:


  1. Add a new Web Reference to http://www.west-wind.com/wconnect/soap/wwhelpservice.wsdl.
  2. Once added rename the reference to wwhelpservice.
  3. Add using WebServiceTester.wwhelpservice; to any module you want to use it in.

where WebServiceTester is the namespace of your project.

wwhelpservice oTLB;
oTLB = new wwhelpservice();

string lcUrl = oTLB.CreateWebServiceDocumentation("http://www.foxcentral.net/foxcentral.wsdl","Foxcentral.net documentation","MSDN");
MessageBox.Show(lcUrl);	

Visual FoxPro with MSOAP:

oSoap = CREATEOBJECT("MSSOAP.SOAPClient")
oSOAP.MSSOAPINIT("http://www.west-wind.com/wconnect/soap/wwhelpservice.wsdl")

*** data, file name, Title, Scheme (MSDN, BLUE, EARTH)
lcUrl = oSOAP.CreateWebServiceDocumentation("http://www.foxcentral.net/foxcentral.wsdl","WcDemo Docs","MSDN")

*** Download the ZIP file
oHTTP = CREATE("Microsoft.XMLHTTP")
oHTTP.Open("GET",lcUrl,.F.)
oHTTP.Send()

STRTOFILE( oHTTP.ResponseBody,"d:\temp\docs.zip" )

Web Connection wwSOAP client:
Use CONSOLE and the WSDL Proxy generator to create a proxy class by pointing at the WSDL file. Then use:

DO wwSoap 
LOCAL oProxy as wwhelpserviceProxy
oProxy = CREATEOBJECT("wwhelpserviceProxy",0)
lcUrl = oProxy.CreateWebServiceDocumentation("http://www.foxcentral.net/foxcentral.wsdl","WcDemo Docs","BLUE")

loHTTP = CREATE('wwHTTP")
STRTOFILE(  loHTTP.HTTPGet(lcUrl),"d:\temp\docs.zip" )


Last Updated: 12/26/01