Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incorporating web service into vfp
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01543475
Message ID:
01543486
Views:
64
>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

Maybe I'm missing something but the wsdl from the Unix service doesn't show the same signature to CheckEligibility() - No parameters, just returns "Hello"

UPDATE: I guess the real problem is the *asmx?wsdl is a Windows thing. It doesn't return the web service definition from the unix service (the '?wsdl' is ignored ; you get the same response without it) . You need to find the real url for this
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform