Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Geocoder Web Service
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Geocoder Web Service
Divers
Thread ID:
01126810
Message ID:
01126810
Vues:
87
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform