未处理Kingdee.BOS.WebApi.Client.ServiceException
HResult=-2147467259
Message=MapComplexProperty Field Error :Field Key is 【FSupplierId】
Source=Kingdee.BOS.ServiceFacade.KDServiceFx
ErrorCode=-2147467259
WebEventCode=0
ClassName=Kingdee.BOS.ServiceFacade.ServiceException
ExceptionMethod=8
Execute
Kingdee.BOS.ServiceFacade.KDServiceFx, Version=6.0.413.1, Culture=neutral, PublicKeyToken=null
Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor
System.String Execute(Kingdee.BOS.ServiceFacade.KDServiceFx.KDServiceContext, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType, System.String[], Kingdee.BOS.ServiceFacade.SerializerProxy, Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceType)
Handled=false
StackTrace:
在 Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)
在 Kingdee.BOS.ServiceFacade.KDServiceFx.ExecuteServiceModule.OnProcess(KDServiceContext context)
在 Kingdee.BOS.ServiceFacade.KDServiceFx.ModulePipeline.ExcuteRequest(KDServiceContext context)
在 Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.BeginRquest(RequestExtractor requestExtractor, WebContext webCtx)
在 Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.StartRequest(RequestExtractor requestExtractor, WebContext context)
在 Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ExecuteRequest(WebContext ctx, RequestExtractor requestExtractor)
在 Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ProcessRequestInternal(WebContext webCtx, RequestExtractor requestExtractor)
InnerException:
这是什么问题?怎么排查?
代码如下:
// 使用webapi引用组件Kingdee.BOS.WebApi.Client.dll
ApiClient client = new ApiClient("h t t p:/ /localhost/K3Cloud/");
object[] loginInfo = new object[] {
"568c92f23a9d4a",//帐套Id
"Administrator",//用户名
"888888",//密码
2052
};//语言id
var ret = client.Execute
var result = JObject.Parse(ret)["LoginResultType"].Value
// 登陆成功
if (result == 1)
{
//var msg = client.Execute
var msg = client.Execute
var bResult = JObject.Parse(msg)["Result"]["ResponseStatus"]["IsSuccess"].Value
}
推荐阅读