CLOUD登录接口调用不成功!
1,269次浏览
编辑于2016年10月31日 14:23:32
代码如下:
UserServiceProxy proxy = new UserServiceProxy();// 引用Kingdee.BOS.ServiceFacade.KDServiceClient.dll
LoginInfo loginInfo = new LoginInfo();
string ServerUrl = "
loginInfo.AcctID = "5812b49604694b";
loginInfo.Username = "kingdee";
loginInfo.Password = "666666";
loginInfo.Lcid = 2052;
this.Context = proxy.ValidateUser(ServerUrl, loginInfo).Context;
登录验证报错:
{Kingdee.BOS.Authentication.LoginResult}
AccessToken: null
Context: null
ErrorStackTrace: null
FormId: null
FormInputObject: null
KdAccessResult: null
Lcid: 2052
LoginResultType: Failure
Message: "数据中心ID错误!"
MessageCode: "002005000003068"
RedirectFormParam: null
可事实上反复确认过,数据中心ID没有错!
是不是与端口号修改有关系?
附补丁号:K/3 Cloud v6.1 PT107614
推荐阅读