我正在尝试使用RestClient
库在post方法中发送Header和Request但收到错误:
未找到端点。
var client = new RestClient("http://xxxxxxxxxx/UIService.svc/xxxxxxxxx/xxxxx");
var request = new RestRequest();
request.Method = Method.POST;
request.AddHeader("Authentication", jsonHeadEncrpt);
// request.AddHeader("Accept", "application/json");
request.Parameters.Clear();
request.AddParameter("application/json", JsonReqEncrpt, ParameterType.RequestBody);
var responsed = client.Execute(request);
响应:未找到端点。请参阅服务帮助页面以构建对服务的有效请求
答案 0 :(得分:0)
Guys发现解决方案需要添加request.Resource需要分配端点函数..现在它工作正常