このような WebInvoke メソッドがあります。
[OperationContract]
[WebInvoke(
Method = "POST",
UriTemplate = "/go",
BodyStyle = WebMessageBodyStyle.Bare,
RequestFormat = WebMessageFormat.Xml,
ResponseFormat = WebMessageFormat.Xml
)]
string go(string name);
そして、私はこのようにデータを投稿します;
System.Net.WebClient client = new System.Net.WebClient();
string reply = client.UploadString(
"http://localhost/HelloService/Service.svc/go",
"POST",
aString);
問題は、このような uri テンプレートを使用せずにgo()メソッドで投稿されたメッセージからデータを取得する方法です。
UriTemplate = "/go({name})"
大量のデータを送りたいのにuriテンプレートでは送れないので