This project is read-only.

Metadata Generation Sample

This sample demonstrates how to use the metadata handler to read metadata from an OData service.

While it's possible to do this at runtime, this incurs an extra round-trip to the server, usually on the path of first display of the page. The recommended practice is to get the metadata at development time and embed it along with the script used to handle the service.

The metadata.htm file provided reads metadata from the Local Service Sample and displays code that can be added to your script to initialize the metadata on script load, without an additional round-trip to the server.

To adapt this sample, simply set the metadata URL to a different value and copy the page to the web server where the data service is hosted to avoid cross-domain access problems.

Last edited Jun 30, 2011 at 12:23 AM by dazhang, version 3


DotNetWise Apr 6, 2012 at 3:43 PM 
Host the example live please