SOAP example

Do you have an example of how to use your SOAP component?

Date Entered: 09/27/2007    Last Updated: 09/27/2007

There should be an example of using the SOAP component included in your installation. If not, here is some code that shows how to consume a free service offered by geocoder.us. You input a "location" and get back latitude/longitude coordinates:
soap.MethodURI = "http://rpc.geocoder.us/Geo/Coder/US";
soap.Method = "geocode";
soap.URL = "http://geocoder.us/service/soap";
soap.AddParam("location", "1600 Pennsylvania Ave, Washington DC");
soap.SendRequest();
soap.XPath = "/Envelope/Body/geocodeResponse/[1]/item/lat";
string lati = soap.XText;
soap.XPath = "/Envelope/Body/geocodeResponse/[1]/item/long";
string longi = soap.XText;

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.