JenniReyniss
Programmer
I need some help for my web service call.
I'm using WebService created in .NET and I'm calling it with VFP.
The thing is I had a web service call that works fine but some changes were made and now I have to use IP address.
At first it was something like this: " but now it is something like this:
" (ip address)/gateway/Service.asmx?WSDL"
Below is a code, similar to the one I use with the IP address.
(It is the exact code as I used before but the only change is that I but in the IP address.)
When I try to call the service I get this: Error: 1924 - LOGATEWAYSERVICE is not an object.
In this case I use a proxy server but if I uncheck the proxy use, the sevice call works fine.
i.e. it doesn't work when using proxy but it works when not using proxy.
The thing is that the users must use proxy server for other things so it has to be checked.
Does anyone know how to work past this.
I have tried different versions off 'loGatewayService.ConnectorProperty("ProxyServer") = ' but nothing works.
Maybe I'm using it wrongly.
If you have any suggection it will be appraised.
With thanks in advance,
Jens Reynisson
I'm using WebService created in .NET and I'm calling it with VFP.
The thing is I had a web service call that works fine but some changes were made and now I have to use IP address.
At first it was something like this: " but now it is something like this:
" (ip address)/gateway/Service.asmx?WSDL"
Below is a code, similar to the one I use with the IP address.
(It is the exact code as I used before but the only change is that I but in the IP address.)
Code:
*LOCAL loGatewayService AS "XML Web Service"
LOCAL loGatewayService AS "MSSOAP.SoapClient30"
* Do not remove or alter following line. It is used to support IntelliSense for your XML Web service.
*__VFPWSDef__: loGatewayService = [URL unfurl="true"]http://ip[/URL] address/gateway/Service.asmx?WSDL , GatewayService , GatewayServiceSoap
LOCAL loException, lcErrorMsg, loWSHandler
TRY
loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FF\")+"_ws3client.vcx")
loGatewayService = loWSHandler.SetupClient("[URL unfurl="true"]http://ip[/URL] address/gateway/Service.asmx?WSDL", "GatewayService", "GatewayServiceSoap")
* Call your XML Web service here.
leResult = loGatewayService.SomeMethod()
When I try to call the service I get this: Error: 1924 - LOGATEWAYSERVICE is not an object.
In this case I use a proxy server but if I uncheck the proxy use, the sevice call works fine.
i.e. it doesn't work when using proxy but it works when not using proxy.
The thing is that the users must use proxy server for other things so it has to be checked.
Does anyone know how to work past this.
I have tried different versions off 'loGatewayService.ConnectorProperty("ProxyServer") = ' but nothing works.
Maybe I'm using it wrongly.
If you have any suggection it will be appraised.
With thanks in advance,
Jens Reynisson