string strPara = "para1=1¶2=2";
HttpWebRequest request1 = (HttpWebRequest)HttpWebRequest.Create("http://127.0.0.1/services/test?wsdl/test");
request1.Method = "POST";
request1.ContentType = "application/x-www-form-urlencoded";
request1.Timeout = 10000;
byte[] data = Encoding.UTF8.GetBytes(strPara);//参数
request1.ContentLength = data.Length;
Stream writer1 = request1.GetRequestStream();
writer1.Write(data, 0, data.Length);
writer1.Close();
WebResponse response = request1.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
strResponse = sr.ReadToEnd();
sr.Close();