
about 1 minute to read
This class provides all the services for creating a .NET proxy assembly and FoxPro Proxy class from a WSDL based Web Service. You basically point at a WSDL service and call the ImportDotNetWebService method to import the Web service. The result creates a .NET assembly and FoxPro proxy class that can interact with the generated .NET assembly to call the Web Service.
The class works by setting the various properties to affect behavior.
foxpro
*** Load libraries
Do DotNetwsdlGenerator
LOCAL loGen as DotnetWsdlGenerator
loGen = CREATEOBJECT("DotnetWsdlGenerator")
loGen.cClass = "WebStoreService"
loGen.cGeneratedClass = "WebStoreServiceProxy"
loGen.cOutputFile = "c:\temp\generated\WebStoreServiceProxy.prg"
loGen.cDotnetAssembly = "c:\temp\generated\WebStoreServiceProxy.dll"
loGen.cNamespace = "WebStoreService"
*** The WSDL URL to read service schema from
loGen.cWsdlUrl = "http://www.west-wind.com/wwstore/services/WebStoreConsumerService.asmx?WSDL"
*** If the WSDL requires authentication
* loGen.cUsername = "ricks"
* loGen.cPassword = GetSystemPassword()
loGen.lRegisterCom = .T.
IF !loGen.ImportDotNetWebService()
? loGen.cErrorMsg
return
ENDIF
? "Done... "
loGen.Dispose
loGen = null
GoUrl
Class Members
Requirements
Assembly: dotnetwsdlgenerator.prg© West Wind Technologies, 2004-2020 • Updated: 09/29/15
Comment or report problem with topic