クライアントで を使用して MVC3 アプリケーションへの RESTful 呼び出しを行いHammock API
、RESTful サービス コードを発行する Silverlight 4.0 アプリケーションがあります。
問題は、がまたはにrequest.Method
設定されているかどうかに関係なく、送信される要求は. 私は何を間違っていますか?WebMethod.Get
WebMethod.Post
POST
private IAsyncResult GetServerList()
{
var callback = new RestCallback((restRequest, restResponse, userState) =>
{
// There is some working callback code here. Excluded for clarity.
}
);
var request = new RestRequest();
request.Method = WebMethod.Get;
request.Path = "ServerList";
return _restClient.BeginRequest(request, callback);
}