Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proxy Connections
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Proxy Connections
Divers
Thread ID:
00880493
Message ID:
00880493
Vues:
62
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!
Répondre
Fil
Voir

Click here to load this message in the networking platform