1-1.web service網站的web.config需新增HttpPost protocol
1-2.在asmx.cs的開頭
將[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
改成[WebServiceBinding(ConformsTo = WsiProfiles.None)]
1-3.在method開頭新增
[SoapRpcMethod(Use = System.Web.Services.Description.SoapBindingUse.Literal)]
注意:1-2跟1-3都要設定,不然會有參數值為null的問題;
另外method只支援string型態的參數跟回傳結果
1)如果參數其中之一不是string型態,則無法進入method(找不到method)
2)如果回傳結果不是string型態,則無法回傳結果
3.選擇HttpPost
4.再設定參數對應的流程變數即可。
easyflow gp, web service — 2019年5月8日
Made with ❤ and at Taiwan.