Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From VFP client through proxy to VFP webservice
Message
From
05/04/2002 04:33:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
From VFP client through proxy to VFP webservice
Miscellaneous
Thread ID:
00641275
Message ID:
00641275
Views:
83
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
Next
Reply
Map
View

Click here to load this message in the networking platform