摘要: js跨域调用wcf服务:1.在Service.cs里添加:[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)][JavascriptCallbackBehavior(UrlParameterName="jsoncallback")] public class Service{ [OperationContract] [WebGet(RequestFormat = WebMessageFormat.Json)] public strin 阅读全文
posted @ 2011-12-15 16:35 xuebingz 阅读(1228) 评论(0) 推荐(0) 编辑
摘要: 远程服务器返回了意外响应 400 Bad Request。原因在于:传输的数据量过大。解决方案:首先在客户端(client)的配置文件里:1.在节点<binding>修改传输数据的最大额度: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_USService1" closeTimeout="00:03:00" openTimeout="00:03:00" rece 阅读全文
posted @ 2011-12-15 16:19 xuebingz 阅读(5417) 评论(3) 推荐(0) 编辑