调用WebApi提示没有指定中心
金蝶云社区-Carlos_1
Carlos_1
0人赞赏了该文章 2,477次浏览 未经作者许可,禁止转载编辑于2016年08月09日 15:46:28

我公司使用的是k3 cloud ,需要对接 k3,代理商建议我们通过调用webapi的方式,代理商协助我们在本地搭建套测试环境,以方便进行调试, 正式环境的帐套ID 我们已取得,测试环境的帐套ID也通过查询表获取,但这两种环境调用对应的webapi均无效,返回“没有指定数据中心”,但帐套ID应该是正确的以下是测试环境调用用例实际情况
请熟悉的朋友协助解答一下,非常感谢

请求地址:没有写链接Kingdee.如何BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvcPOST 请求参数{'parameters': [u'579f2a1e837cb0', u'sa', u'XXXXXX', 2052], 'format': 1, 'timestamp': '2016-08-09', 'v': '1.0', 'useragent': 'ApiClient', 'rid': '787091d6-1173-42a4-89af-70a78acef1e9'}返回信息:response_error:{"InnerExWrapper":{"IsEmpty":false,"Data":{},"HelpLink":null,"Message":"调用的目标发生了异常。","Source":null,"StackTrace":" 在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n 在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n 在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)","TargetSite":null,"ExceptionType":"System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","InnerException":{"IsEmpty":false,"Data":{"发生时间:":"14:41:25","错误编号:":"####","错误来源:":null,"错误信息:":"没有指定数据中心。","调用堆栈:":null},"HelpLink":null,"Message":"没有指定数据中心。","Source":null,"StackTrace":" 在 Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateLoginInfo(String ServerUrl, LoginInfo loginInfo)","TargetSite":null,"ExceptionType":"Kingdee.BOS.KDException, Kingdee.BOS, Version=6.0.413.1, Culture=neutral, PublicKeyToken=null","InnerException":null}},"ClassName":"Kingdee.BOS.ServiceFacade.ServiceException","Message":"没有指定数据中心。","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)\r\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ExecuteServiceModule.OnProcess(KDServiceContext context)\r\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ModulePipeline.ExcuteRequest(KDServiceContext context)\r\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.BeginRquest(RequestExtractor requestExtractor, WebContext webCtx)\r\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.StartRequest(RequestExtractor requestExtractor, WebContext context)\r\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ExecuteRequest(WebContext ctx, RequestExtractor requestExtractor)\r\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ProcessRequestInternal(WebContext webCtx, RequestExtractor requestExtractor)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nExecute\nKingdee.BOS.ServiceFacade.KDServiceFx, Version=6.0.413.1, Culture=neutral, PublicKeyToken=null\nKingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor\nSystem.String Execute(Kingdee.BOS.ServiceFacade.KDServiceFx.KDServiceContext, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType, System.String[], Kingdee.BOS.ServiceFacade.SerializerProxy, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType)","HResult":-2147467259,"Source":"Kingdee.BOS.ServiceFacade.KDServiceFx","WatsonBuckets":null,"_httpCode":500}