webservice传参问题

传递到webservice的参数
{
"action": "SIGN_FLOW_FINISH",
"flowId": "9222",
"status": 1,
"flowType": "Common",
"createTime": "2019-03-05 12:21:47",
}
webservice接口接收
[WebMethod(Description = "")]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public void PostCallBack(string action, string flowId, string status, string flowType, string createTime)
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ContentType = "application/json; charset=utf-8";
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.End();
}

-------------------------分割线-------------------------
传给webservice的参数就是这样对方不肯修改参数格式
webservice接口里面接收的时候除了写出所传递的参数外,还有其他方式可以接收参数吗?

回答

Context.Request裡應該也可取得傳入參數

以上是webservice传参问题的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>