【问题标题】:IBM BPM mapping list from WebService来自 WebService 的 IBM BPM 映射列表
【发布时间】:2013-03-19 19:40:27
【问题描述】:
我使用的是 BPM 7.5.1,但在将结果从 web 服务映射到本地 BPM 变量时遇到问题。 Webservice 向我返回一个对象列表。确切地说,我有“客户”列表,每个客户都有一些基本信息(id、注册号等)。所有数据类型似乎都生成正确,webservice 返回正确的soap数据,但 BPM 无法将其映射到变量中。
我仍然收到此错误:
CWLLG0391E: An update operation failed.
com.lombardisoftware.core.TeamWorksRuntimeException: Property ClientId in class ClientsListResponse is not declared. It must be declared to be used.
感谢您的建议。
【问题讨论】:
标签:
web-services
process
business-process-management
【解决方案1】:
Property ClientId in class ClientsListResponse is not declared.
如错误声明中所述,您在 ClientsListResponse 中的 ClientId 尚未声明。您可以尝试以下方法:
tw.local.ClientsListResponse = new tw.object.listOf.ClientsListResponse;
tw.local.ClientsListResponse[0] = new tw.local.ClientListResponse;
tw.local.ClientsListResponse[0].ClientID = "xxx";
希望它有效:)
【解决方案2】:
WSDL 没有属性 ClientId。可能是一些不同的角色。
另一方面,实例化一个对象必须是:
tw.object.listOf.ClientsListResponse = new tw.local.ClientsListResponse();
不是这样的
tw.local.ClientsListResponse = 新的 tw.object.listOf.ClientsListResponse;