【发布时间】:2021-09-20 04:46:52
【问题描述】:
我正在尝试将一个对象(通用列表对象)更新为 RuntimeFiledCollection。当我尝试使用以下代码进行更新时,总是出现序列化错误:(
//My object which need to update set with the documentRuntimeField value
List<docInfo> docInfoList = new List<docInfo>
docInfo = new docInfo { ID = "11233", PageNumber = 1, text ="MyOwnText"};
docInfoList.Add(docInfo);
// Construct DOcument RuntimeFields Collection
var docRunTimeCollection = new CaptureDocumentService.RuntimeFieldCollection();
var docRunTimeField = new CaptureDocumentService.RuntimeField
{ Name = "FieldName", Value = docInfoList };
docRunTimeCollection.Add(docRunTimeField);
captureDocumentServiceClient.UpdateDocumentFieldValues(sessionId, null, validDocumentId, docRunTimeCollection);
我总是收到如下所示的灭菌错误。有人可以给我一个示例,如何使用对象更新文档字段值。有什么帮助吗?
错误:尝试序列化参数http://www.kofax.com/agilityservices/sdk:runtimeFields.InnerException时出错,消息是System.Collections.Generic.List
【问题讨论】:
-
如果这是一个商业产品,我会问他们这个问题。毕竟你付了钱。