前端post请求,调用wcf的后台接口,后台未接收到调用请求

 

后台wcf代码中要增加请求大小设置代码

var http_binding = new WebHttpBinding();
http_binding.MaxReceivedMessageSize = 2147483647;
http_binding.SendTimeout = new TimeSpan(0, 10, 0);
http_binding.CrossDomainScriptAccessEnabled = true;

posted @ 2024-03-21 12:50  SimpleGIS  阅读(16)  评论(0编辑  收藏  举报