views:

196

answers:

6

Has anyone come across an example of a non .Net consumer of an ADO.NET Data Service? I am on the second day of looking at what Astoria is and how it can be used. I am also trying to answer why would I use this instead of a web service?

After getting my examples running, I kind get the RESTful approach to getting data out the system. And, plugging it into a .net client is incredibly easy. But, then I wondered how a non-.NET consumer would go about it.

Any ideas (pointers) definitely appreciated...

+1  A: 

Well since ADO.NET Data Services exposes itself as a RESTful service anything that can make RESTful calls to a URI can properly use the service. I think rather than looking for .NET related to X technology you should look up the technology you're using (Python, PHP, Whatever) on how to call RESTful services. Once ADO.NET hosts the data service... it's up and for anyone to use.

Chad Moran
A: 

Great suggestion. Trying to not get blinded by the shinyness!

Thanks!

SwampyFox
+1  A: 

Let me ask another question on this thread...

Do other programming languages have the tooling to connect to an ADO.NET Data Service and generate proxy classes in the manner similar to what I can do in VS2k8?

What I am curious about is if other developers on other platforms would have to roll their own consumption of the service or is this a common concept?

Thanks

SwampyFox
A: 

To consume an ADO.NET Data Service all that is needed is the ability to make HTTP requests using the GET, POST, PUT and DELETE verbs and to set the Accept header.

Not all programming environments offer these, e.g. Silverlight 2 and J2ME can only do GET and POST, not PUT and DELETE. This means that it is not possible to do updates or deletes from a Java Micro Edition client to the latest version of ADO.NET Data Services (1.5 CTP).

Hans Malherbe
+1  A: 

Hi Swampy,
We now have PHP and JAVA client libraries to communicate with ADO.NET Data Services based services.

Phani Raj
A: 

There is also a fairly mature AJAX based client library for Data Services. See the ASP.NET AJAX Control Toolkit for more information or just go to OData.org.

ShayneBurgess