Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A call for help for my web service call

Status
Not open for further replies.

JenniReyniss

Programmer
Mar 23, 2010
12
IS
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.)

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top