7.Add a reference to the MapPoint API by
7.Add a reference to the MapPoint API by selecting Project.Add Web Reference. For the URLfield, specify the WSDLfile location, such as http://staging.mappoint.net/standard-30/ mappoint.wsdl. 8.Click the GO button so that Visual Studio locates the MapPoint Web API. 9.Change the Web Reference Name to MapPointso that you can use a shorter name in your pro- ject. At this point, the screen should appear similar to the one shown in Figure 8-4. Figure 8-410.Click the AddReferencebutton to add the reference to your project. Visual Studio .NET usesthe WSDLfile to identify the methods that are available for execution from your project. 11.Add the following imports statement to the top of the code segment (before the PublicClassForm1statement) so that you can refer to the MapPoint service in the project in shorthandmode. Imports PocketPCTest.MapPoint12.Add the following btnRetrieve_Clickevent to the form, inserting your customer ID andpassword in two places in the applicable lines of code: Private Sub btnRetrieve_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles btnRetrieve.Click Purpose: Obtain Driving Directions from one address to another Specify the credentials for the find service Use the customer id and password you were providedDim findService As New FindServiceSoapfindService.Credentials = New _ System.Net.NetworkCredential( YOUR CUSTOMER ID , YOUR PASSWORD ) 186Chapter
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Mac Web Hosting services