| West Wind HTML Help Builder Web Service |
| Example: Create documentation for Web Service |
using WebServiceTester.wwhelpservice; to any module you want to use it in.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" )