Reputation: 1996
I would like to access to an external webservice from a Silverlight client.
I know how to do the GET method. But I can't find a way to use DELETE, PUT and POST in Silverlight.
I have tried HttpWebRequest but in Silverligth I don't have access to the full stack of method from this class.
Does anyone have an idea on how to do that ?
Upvotes: 1
Views: 1283
Reputation: 6629
Microsoft has released a portable version of HttpClient that can be used in Silverlight that will give you the REST methods you are looking for. See this link for how to add it to your project via nuget: https://www.nuget.org/packages/Microsoft.Net.Http.
Upvotes: 1