I am testing my app in other PC's and in some of them it cannot instanstiate the web service. I use this sentences (as generated by dragging it from VFP Toolbox into my program, but I show only the two sentences that are of interest):
loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
loWSComfiar = loWSHandler.SetupClient("http://test.comfiar.com.pe/ws/wscomfiar.asmx?wsdl", "WSComfiar", "WSComfiarSoap")
It does not raise any error and at the end
loWSHandler IS an object, as it should be, but
loWSComfiar is an empty string, not an object, which is wrong. After researching I found that the
ErrorMessage property of
loWSHandler contains this:
"OLE IDispatch exception code 0 from WSDLReader: WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: Error when downloading requested resource."However on mi PC which is also Windows 10, 64 bits and is also in the same network it does not show any error.
loWSComfiar is an object and
ErrorMessage property of
loWSHandler contains
.F.Any ideas?