ApiClient client = new ApiClient(ConfigurationManager.AppSettings["K3WebUrl"].ToString());
string dbid = ConfigurationManager.AppSettings["DBID"].ToString();
object[] loginInfo = new object[] {
dbid,//帐套Id
username,//用户名
password,//密码
2052};//语言id
var ret = client.Execute
var result = JObject.Parse(ret)["LoginResultType"].Value
// 登陆成功
if (result == 1)
{
string return_json = client.Execute
, new object[] { "QM_InspectBill", "{\"CreateOrgId\":\"100001\",\"Numbers\":\"'" + BillNo + "'\"}" });
}
就算将BillNo传不存在的单号,也报下面的错误,
返回的结果是:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"AbstractInteractionResult","Message":"AbstractInteractionResult.InteractionContext is null"}]}}}
调用【提交】的那个接口也有问题,出现以下提示:
System.Exception: 服务出现异常,请联系管理员! ---> Kingdee.BOS.WebApi.Client.ServiceException: 你选择提交的数据可能已被删除
推荐阅读