Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Geocoder Web Service
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Geocoder Web Service
Miscellaneous
Thread ID:
01126810
Message ID:
01126810
Views:
86
I am attempting to access the geocoder address web service to get GPS coordinates from a street address. I followed the sample code given in VFP9, but am not sure what I'm getting back and haven't been able to glean anything meaningful from the results. I get an array, which appears to have one record, which is an object. I haven't gotten anything at all out of the object. Can anyone help? Here's my code below (I left out the error trapping, as it doesn't appear to factor into the equation):
LOCAL loGeoCode_Port AS "XML Web Service"
* LOCAL loGeoCode_Port AS "MSSOAP.SoapClient30"
* Do not remove or alter following line. It is used to support IntelliSense for your XML Web service.
*__VFPWSDef__: loGeoCode_Port = http://geocoder.us/dist/eg/clients/GeoCoder.wsdl , GeoCode_Service , GeoCode_Port
LOCAL loException, lcErrorMsg, loWSHandler

	loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
	loGeoCode_Port = loWSHandler.SetupClient("http://geocoder.us/dist/eg/clients/GeoCoder.wsdl", "GeoCode_Service", "GeoCode_Port")
	* Call your XML Web service here.  ex: leResult = loGeoCode_Port.SomeMethod()
	*geocode_address(address AS string) AS ArrayOfGeocoderAddressResult
	l_address = loGeoCode_Port.geocode_address("614 E Pacific St, Salina,KS")

        l_address.?  (what do I do from here?)
Steve Howie, owner
DaSH Technology
Denver, CO
Next
Reply
Map
View

Click here to load this message in the networking platform