【发布时间】:2014-06-20 00:30:38
【问题描述】:
我有这个网络服务
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "UploadReceipt?CompanyCode={CompanyCode}&FileName={FileName}&FileContent={FileContent}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
RestResponseInfo<bool> UploadReceipt(string CompanyCode, string FileName, string FileContent);
我这样称呼它
然后它会调用这个方法
public RestResponseInfo<bool> UploadReceipt(string CompanyCode, string FileName, string FileContent)
{
}
但是当我通过检查调试器看到这个参数时,它返回的 null 值让我从 5 个小时就陷入了这个困境............
我也使用了 chrome 的提前休息服务,但仍然有这个问题
【问题讨论】:
-
@Uriil 所以我不明白吗?
-
方法完成后仍然接收空参数
标签: c# asp.net web-services wcf .net-3.5