The postcode call does work, you just need to put in a partial code eg: M22

-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Dave Crozier
Sent: 16 May 2013 11:28
To: ProFox Email List
Subject: RE: Damned Web Services....

Al,
You are a legend... or is that LEG END? 

At least I can now do some investigative testing ....

I owe you a beer.

Dave


-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Allen
Sent: 16 May 2013 11:24
To: [email protected]
Subject: Re: Damned Web Services....

LOCAL loUKLocation AS "XML Web Service"
* LOCAL loUKLocation AS "MSSOAP.SoapClient30"
* Do not remove or alter following line. It is used to support IntelliSense for 
your XML Web service.
*__VFPWSDef__: loUKLocation =
http://www.webservicex.net/uklocation.asmx?wsdl , UKLocation , UKLocationSoap 
LOCAL loException, lcErrorMsg, loWSHandler TRY
    loWSHandler =
NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
    loUKLocation =
loWSHandler.SetupClient("http://www.webservicex.net/uklocation.asmx?wsdl";,
"UKLocation", "UKLocationSoap")
    * Call your XML Web service here.  ex: leResult =
loUKLocation.SomeMethod()
    retval = loUKLocation.GetUKLocationByTown("Southwick")
    ? retval

CATCH TO loException
    lcErrorMsg="Error: "+TRANSFORM(loException.Errorno)+" - 
"+loException.Message
    DO CASE
    CASE VARTYPE(loUKLocation)#"O"
        * Handle SOAP error connecting to web service
    CASE !EMPTY(loUKLocation.FaultCode)
        * Handle SOAP error calling method
        lcErrorMsg=lcErrorMsg+CHR(13)+loUKLocation.Detail
    OTHERWISE
        * Handle other error
    ENDCASE
    * Use for debugging purposes
    MESSAGEBOX(lcErrorMsg)
FINALLY
ENDTRY


-----Original Message----- 


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to