调用SI接口同步销售订单数据,明细超过300行出现异常
金蝶云社区-puppydom
puppydom
0人赞赏了该文章 438次浏览 未经作者许可,禁止转载编辑于2016年09月02日 19:33:26

调用SI接口同步销售订单数据,明细较少时没有异常,明细超过300行出现异常,异常信息:
System.ServiceModel.ProtocolException: 响应消息的内容类型 text/html; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。响应的前 1024 个字节为:“

运行时错误

“/K3CloudServiceInterface”应用程序中的服务器错误。

运”。 ---> System.Net.WebException: 远程服务器返回错误: (500) 内部服务器错误。
在 System.Net.HttpWebRequest.GetResponse()
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- 内部异常堆栈跟踪的结尾 ---

Server stack trace:
在 System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 IM.K3Service.K3CloudService.ISyncReply.SAL_SaleOrder_Save(SAL_SaleOrder_SaveRequest request)
在 IM.K3Service.SaleOrderSyncService.Save(SAL_SaleOrder model)
在 IM.SyncService.V3.SaleOrderSync.<>c__DisplayClass3.b__1()
在 IM.Common.Extensions.ObjectExtensions.Execute(Object obj, Action action, Logger logger)