Section 5.1. How Does MapPoint Web Service Work?


5.1. How Does MapPoint Web Service Work?

Like any other web service, MapPoint Web Service enables you to develop distributed applications. By invoking MapPoint Web Service methods over the wire, you can perform many location-based tasks, such as finding places, finding addresses, calculating driving directions, rendering maps, and so on. All web service requests that invoke MapPoint Web Service methods must be authenticated using the credentials assigned to your MapPoint Web Service account (I will go into more detail on this subject later in the chapter). Once your request is successfully authenticated, MapPoint Web Service executes the corresponding method using your input parameters and returns an appropriate output wrapped in a valid response. While all this communication happens in SOAP, you do not need to get into the details of SOAP request or response to communicate with MapPoint Web Service; Microsoft .NET framework does a great job of abstracting away the wire-format level specifics.

Figure 5-1 shows how your location-enabled applications communicate with MapPoint Web Service.

Figure 5-1. How MapPoint Web Service works


As you can see, any application you develop using MapPoint Web Service is a "connected" application, requiring your application to be able to communicate over the wire via the Internet.

So, what are the advantages of a connected MapPoint Web Service-based application? There are many advantages to this model:


Your applications remain lightweight.

Since location-related data and the core processing remains in the cloud, your applications primarily contain your business-specific location processing.


Location data is maintained for you and is always up-to-date.

Since the location data is also hosted by Microsoft, you don't need to worry about keeping the location data up-to-date; this task is abstracted from your program seamlessly.


Building global applications is easy.

Since MapPoint Web Service offers location data for multiple countries/regions of the world, you can write only one application and use many location data sources to work with location data from different countries/regions.

Now that you know how your applications communicate with MapPoint Web Service at a macro level, let's get started programming with MapPoint Web Service.




Programming MapPoint in  .NET
Programming MapPoint in .NET
ISBN: 0596009062
EAN: 2147483647
Year: 2005
Pages: 136
Authors: Chandu Thota

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net