Web Page Design and Hosting

March 31, 2007

13.Save and run the program. As shown in

Filed under: professional development with web apis — webmaster @ 4:06 am

15.Type in a starting address and an ending address in the text boxes on the device. Then click Directions button. You should see driving directions based on the address you entered, those shown in Figure 8-7. Figure 8-7Example 2 Call Amazon.com API Using HTTP/GET (REST) ProtocolIn this example, you call the Amazon.com API to look up a list of books that match the specified criteria. The Amazon.com API was covered in greater detail in Chapter 4. You will use the HTTP/GET (REST) tocol in this example. You already learned that REST uses a series of parameters included in the URLtocommunicate with the Web API. You also learned that REST returns the results in an XMLdocument. sake of simplicity, our program displays the XMLdocument returned as a result of the call. In your you can use an XMLparser to parse the results and work with them in any way you wish. Let s get started with creating the mobile devices example to use the Amazon.com API. 1.Open Visual Studio .NET and select File.New.Project. 2.Select Visual Basic Project as the Project Type, and select Smart Device Application as the Template. For the project name, specify PocketPCTest2; for the path, specify the location where you wantthe project to be created. Click OK to create the new project.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Mac Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting