“Astoria” – Data Services For ASP.Net Ajax and Silver light

03 May
A new framework to make it easy for use to build data services to make it easy for developers to get data for a rich web client using ASP.Net Ajax and Silverlight, Microsoft Codename “Astoria”.By using URL’s we can simply get data from our data source, for example let assume we want to get an Order entity, we can simply write:http://webserver/data.svc/OrdersIf we want to get an specific Order we can write:


There are several things we can do, like sorting, using “property path” to get child entities, we can use paging etc.Currently Astoria can represent data in plain XML, JSON and in a subset of RDF and XML.For example if we get the data as XML it could look like:

<DataService xml:base=”http://myserver/data.svc”&gt; 


                  <Order uri=”Orders[Pizza]”>  




                                   <ContactTitle>Sales Manager</ContactTitle>   

                                   <Address>#15, Kakkanji Street, Gandhi Nagar</Address>   


                                    <Region>Tamil Nadu</Region>   





                                    <OrderDetails href=”Order[Pizza]/OrderDetails” mce_href=”Order[Pizza]/OrderDetails” />  




 Astoria uses the ADO.NET Entity Framework. With the Entity Framework we could use EDM schemas and map our entities against a relational data source.


Here’s the description from the Astoria Project Site (where you can get the CTP today):


“The goal of Microsoft Codename Astoria is to enable applications to expose data as a data service that can be consumed by web clients within a corporate network and across the Internet. The data service is reachable over HTTP, and URIs are used to identify the various pieces of information available through the service. Interactions with the data service happens in terms of HTTP verbs such as GET, POST, PUT and DELETE, and the data exchanged in those interactions is represented in simple formats such as XML and JSON. “

Here’s a great video by Pablo Castora:

1 Comment

Posted by on May 3, 2007 in Others


One response to ““Astoria” – Data Services For ASP.Net Ajax and Silver light

  1. September

    November 10, 2008 at 3:30 pm

    Good post.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: