Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From VFP client through proxy to VFP webservice
Message
De
05/04/2002 04:33:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
From VFP client through proxy to VFP webservice
Divers
Thread ID:
00641275
Message ID:
00641275
Vues:
85
Hi,
when I try to use a webservice I created it works all right on the local network or any situation with a direct connection.
However when I connect to it through a proxy, or at least try it, it doesn't allways work. A transparant proxy or NAT works all right but a traditional one doesn't.
I've read that setting some properties makes SOAP aware of a proxy but I cant't find the right methods and places where to insert the code to do that.
They talked about
oSoap.ConnectorProperty("UseProxy") = .T.
but that property doesn't work, because it's unknown?
Is there another way to automatically get the proxy settings?

Here is the code I use to connect (using the class _webservices delivered with VFP 7):

LOCAL oWService as telephone
LOCAL loWS
loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx") && standard WebService client
loWS.cWSName = "telephone"
oWService = loWS.SetupClient("http://testserver/webphone/telephone.wsdl", ;
"telephone", "telephoneSoapPort") && set up custom webservice

If Type("oWService")=="O"
pbWebServiceAvailable = .t. && check if object creation succeeded
EndIf
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform