Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proxy Connections
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Proxy Connections
Miscellaneous
Thread ID:
00880493
Message ID:
00880493
Views:
61
I have seen several questions posted on this subject, but have yet to see an answer. I see several proxy like methods and properties on the wsclient class of the _webservices.vcx file like the getproxyobject method, but no documentation on how to use them.

Anyway the problem is that many of our users must call our web services thru a proxy that requires username and password. I have been able to configure a proxyserver and proxy port using the following technique:
LOCAL lcServiceName
lcServiceName=JUSTSTEM(thisform.csoapserver)
LOCAL ows as ECF
LOCAL loWS
loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
loWS.cWSName = "ECF"
ows = loWS.SetupClient(thisform.csoapserver,lcServiceName,"ECFDOCSSoapPort")
oWs.ConnectorProperty("ProxyServer")="192.168.1.108:8080"
The problem is that the loWS.SetupClient method fails and does not return an object since the username and password are required and this technique requires setting those values on the returned object. Therefore it is impossible to set the proxyuser and proxypassword on hte wWs ConnectorProperty sice the oWs object cannot get instantiated!
Reply
Map
View

Click here to load this message in the networking platform