调用第三方webservice 报错
金蝶云社区-Flong
Flong
0人赞赏了该文章 1,883次浏览 未经作者许可,禁止转载编辑于2016年06月29日 16:04:57

开发一个插件,里面调用了客户提供的webservice,在我本机测试正确,但把插件更新到服务器上后,报错。
但是,在服务器上,通过浏览器打开webservice,调用方法是正常的,在cloud中就报错!
搞了一天,实在是找不出哪里出的问题,求大神指导一下!

[{"operation":"STK_InStock_List.MBIClick.tbSplitApprove"}]
发生时间:09:56:47
错误来源: MyDev.K3.MFG.PRD.Business.PlugIn
错误信息:接口错误:InterfaceService.PurchaseOrderToMES!The communication object, System.ServiceModel.ChannelFactory`1[MyDev.K3.MFG.PRD.Business.PlugIn.ErpToMesInterfaceService.ErpToMesInterfaceServiceSoap], cannot be used for communication because it is in the Faulted state.
===================================================
调用堆栈:
at MyDev.K3.MFG.PRD.Business.PlugIn.InterfaceService.PurchaseOrderToMES(String dataXml, String functionName, String passWord, String userID)
at MyDev.K3.MFG.PRD.Business.PlugIn.PurchaseOrderListAudit.AfterDoOperation(AfterDoOperationEventArgs e)
at Kingdee.BOS.Core.DynamicForm.PlugIn.DynamicFormViewPlugInProxy.FireAfterDoOperation(AfterDoOperationEventArgs e)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.AfterExcuteOperation(IOperationResult opResult, IOperationResult result, CallBackWfAfterOperation callbackwf)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.Operation(CallBackWfAfterOperation callbackwf, IOperationResult result)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.Execute(InvokeFormOperation4WfParam param, CallBackWfAfterOperation callbackwf)
at Kingdee.BOS.Web.DynamicForm.OperationCaller.InvokeFormOperation(String operationNumber)
at Kingdee.BOS.Business.DynamicForm.BusinessService.ExcuteOperation.DoAction(FormBusinessServiceArgs e)
at Kingdee.BOS.Core.DynamicForm.FormBusinessServiceUtil.InvokeServices(IDynamicFormView view, Object source, IEnumerable`1 services, Int32 actionType, String activeEntity, DynamicObject activeRow, Int32 rowIndex)
at Kingdee.BOS.Web.DynamicForm.BusinessServiceCaller.InvokeFormBusiness(IDynamicFormView view, Object source, List`1 formBusinessServices, Int32 actionType, String entityKey, Int32 row)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.BarItemClick(String parentKey, String barItemKey, BarDataManager bar, Int32 bartype)
at Kingdee.BOS.Web.List.ListView.MainBarItemClick(String barItemKey)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormController.MainBarItemClick(String itemKey, JSONArray postDatas)
错误数据: System.Collections.ListDictionaryInternal