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:
01543526
Views:
69
Mark,

I'm not sure what you're asking in this post... The first URL points to a valid WSDL document.

The second URL points to a SOAP result, not a WSDL document. When I access the second URL I get a SOAP envelope (ie. Response):
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
  <CheckEligibilityResponse>
   <CheckEligibilityResult>Hello
   </CheckEligibilityResult>
  </CheckEligibilityResponse>
 </soap:Body>
</soap:Envelope>
I presume this is a fake response set up that you are trying to simulate or what?

IAC, the URL you pass to MsSoapInit() needs to be a WSDL document, not a SOAP response.

Aloha,

+++ Rick ---

>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
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform