是否可以使用富媒体丰富特定的节点值?如何丰富OM属性中的节点值?
我的目标是为了丰富这个XPath:
$ctx:OriginalPayload//Partner[identifiers/businessId = $ctx:CorrelationId]/identifiers/otherId
我已经试过这些例子:
$ctx:OriginalPayload//Partner/identifiers/otherId
//Partner/identifiers/otherId
//Partner/identifiers/otherId/text()
//Partner/identifiers/otherId/node()
全部给了我这个错误:
ERROR - EnrichMediator Invalid Target object to be enrich.
我用这语法:
<enrich>
<source xpath="//plat:CustomerAccountId"/>
<target xpath="//Partner/identifiers/otherId"/>
</enrich>
下面是我的有效载荷,我正在努力充实:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://iszkody.lsn.io/service/internal/ClaimService">
<soapenv:Header/>
<soapenv:Body>
<ns0:createClaimRequest>
<claim>
<InsClaimData VER="1">
<PartnerList>
<Partner>
<RoleList>
<Role>UBEZP</Role>
</RoleList>
<BusinessPartner>
<partnerType>person</partnerType>
<personData>
<firstName>JANUSZ</firstName>
<lastName>KOWALSKI</lastName>
<PESEL>83248328432</PESEL>
</personData>
<identifiers>
<businessId>123</businessId>
<otherId></otherId>
</identifiers>
</BusinessPartner>
</Partner>
</PartnerList>
</InsClaimData>
</claim>
</ns0:createClaimRequest>
</soapenv:Body>
</soapenv:Envelope>
它看起来并不像有效载荷或XPath,但更像是调停没有实现自定义类型的问题。
您可以提供应用丰富介体的XML有效载荷吗? – FiveO
我想你错过了中间标签BusinessPartner。尝试一次'/ /合作伙伴/ BusinessPartner /标识符/ otherId' – FiveO
什么都没有改变... – poison64