是否可以使用富媒體豐富特定的節點值?如何豐富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