WebClient webService
static void Main(string[] args)
{
string uri = @"http://localhost:2645/Service1.asmx/HelloWorld1";
WebClient wc = new WebClient();
StringBuilder postData = new StringBuilder();
postData.Append("name=" + "mingyongcheng");
// ? ? ?utf-8 ? ?
byte[] sendData = Encoding.GetEncoding("utf-8").GetBytes(postData.ToString());
wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
wc.Headers.Add("ContentLength", sendData.Length.ToString());
byte[] recData = wc.UploadData(uri, "POST", sendData);
// ? ? う? ? μ ? ? ?
string s = Encoding.GetEncoding("utf-8").GetString(recData);
}