Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incorporating web service into vfp
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Incorporating web service into vfp
Miscellaneous
Thread ID:
01543475
Message ID:
01543475
Views:
114
I incorporated a web services function that was developed to communicate with a remote server, into VFP as follows:
LOCAL oProxy
oProxy = CREATEOBJECT("MSSOAP.SoapClient30")
oProxy.MSSoapInit("https://www.soljen-websrvc.com/EligibilityHealthInsurance.asmx?wsdl")
return_data = oProxy.CheckEligibility("", "", req_type, vendor, prov_npi, param6, param7, param8, param9, param10, param11, param12)
The remote server is Windows based and the above code works fine. The next part of the process involves having this server communicate
with a UNIX server. I have tested the communication with the UNIX server from a DOS session and it works fine. I am trying to incorporate
this into the VFP as follows:
LOCAL oProxy
oProxy = CREATEOBJECT("MSSOAP.SoapClient30")
oProxy.MSSoapInit("https://websrv01.physician-to-go.net/proxy.cgi/EligibilityHealthInsurance.asmx?wsdl")
return_data = oProxy.CheckEligibility("", "", req_type, payer_code, prov_npi, fname, lname, pdob, psex, payer_code, policy, dos)
I get an error, OLE error code 0x80020006, on the oProxy.MSSoapInit statement which reads as follows:

OLE IDispatch exception code 0 from WSDLReader;
WSDLReader:XML Parser failed at linenumber0, lineposition 0,
reason is;unrecognized coding.
HRESULT=0x1: Incorrect function.
- WSDLReader:Loading of the WSDL file failed
HRESULT=0x80070057; The parameter is incorrect.
- Client:one of the parameter is invalid.
HRESULT= 0x80070057; The parameter is incorrect.

Is this a result of the fact that the server is not a Windows server or is this somoe other error that I should be looking at?

Mark
Next
Reply
Map
View

Click here to load this message in the networking platform