Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot instanstiate Web Service in some PC's
Message
From
22/03/2017 14:25:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Cannot instanstiate Web Service in some PC's
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01649258
Message ID:
01649258
Views:
60
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?
Reply
Map
View

Click here to load this message in the networking platform