我在 Open ESB BEPL 进程中映射嵌套列表时遇到问题。我正在调用一个服务,该服务返回一个包含列表的对象。该列表中的一个参数是另一个列表。我映射到的返回对象或多或少复制了服务返回的对象的结构。(即它有一个列表,其中一个参数是嵌套列表)
我可以毫无问题地将第一级列表中的参数映射到彼此。当我尝试将嵌套列表中的参数映射到返回对象中的嵌套列表时,我得到一个 com.sun.xml.transform.sware.TooManyElementsException。这似乎表明(从我能收集到的)我正在尝试将一个集合映射到一个变量中。(几乎就像 BPEL 不遍历嵌套列表一样)。这一切都在同一个 BPEL 分配中完成。
这是我的 BPEL 代码:< assign name="mapGetQuotesOut" >
<!-- this works -->
<copy> <from>$getClientQuotesOut.parameters/ns0:GetClientQuotesResult/ns1:QuotePolicy/ns1:ProductID</from>
<to>$viewCustomerOut.part1/return/quotes/produsctID</to>
</copy>
<!-- this works -->
<copy>
<from>$getClientQuotesOut.parameters/ns0:GetClientQuotesResult/ns1:QuotePolicy/ns1:LeadSourceCode</from>
<to>$viewCustomerOut.part1/return/quotes/leadSourceCode</to>
</copy>
<!-- this causes the error -->
<copy>
<from>$getClientQuotesOut.parameters/ns0:GetClientQuotesResult/ns1:QuotePolicy/ns1:QuoteItems/ns1:QuoteItem/ns1:ItemDesc<<from>
<to>$viewCustomerOut.part1/return/quotes/vehicleQuoteItems/itemDescription</to>
</copy>
<!-- this also causes the error -->
<copy>
<from>$getClientQuotesOut.parameters/ns0:GetClientQuotesResult/ns1:QuotePolicy/ns1:QuoteItems/ns1:QuoteItem/ns1:AgentCode</from>
<to>$viewCustomerOut.part1/return/quotes/vehicleQuoteItems/agentCode<to>
</copy>
</assign>
有什么想法或建议吗?麦克风