0

What is the standard way of accessing a restful service from silverlight (I am targetting v3 of silverlight)?

In .net i use REST Starter KIT but its not compatible with Silverlight - although i did find a port but unsure weather to try it.

Is there a standard way to access rest from silverlight?

Any good examples or tutorials?

Also is there an equivelant of ReadAsDataContract for populating a .net class from the restful service?

Any help really appreciated

Thanks

Martin
  • 23,844
  • 55
  • 201
  • 327

2 Answers2

1

Use ClientHttpStack and System.Runtime.Serialization

Take a look at the Client HTTP Stack for Silverlight, you'll need this to implement REST properly.

You can turn your ResponseStream into an object using System.Runtime.Serialization's DataContractSerializer.

Jay
  • 615
  • 4
  • 9