Creating a Web Service Data Source

In this section, I discuss how you can build a web service data source. The web service data source enables you to bind a ListView control to a remote web service. You can use the data source to both retrieve and modify data.

You can use the web service data source, for example, to retrieve a list of products from a catalog of products stored in a database on a remote website. That way, when the catalog of products is updated, your Windows Store app will display the latest products.

Note

When working with Ajax, I strongly recommend that you take advantage of the free Fiddler2 tool to help debug failed Ajax requests. You can download Fiddler2—which works great with Windows 8—from http://fiddler2.com.

Note ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.