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