如何模拟WCF REST服务:
HttpWebResponse响应;
HttpWebRequest request;
try
{
request = (HttpWebRequest)HttpWebRequest.Create(System.Configuration.ConfigurationManager.AppSettings["TransferUrl"] + "/Download/" + ID1 + "/" + ID2 );
request.Method = "GET";
response = (HttpWebResponse)request.GetResponse();
}
甚至可以在服务中的代码
中执行此操作答案 0 :(得分:0)
有几种想法: