i stored xml document in property:
<property expression="$body//*" name="indoc" scope="default" type="om"/>
in later step of proxy want access xml doucment.
this
<log level="custom"> <property name="indoc" expression="get-property('indoc')"/> </log>
gives whole xml document. access parts of xml e.g. 1 value in later step of proxy. tried
<log level="custom"> <property name="indoc" expression="get-property('indoc')//aaa"/> </log>
or this
<log level="custom"> <property name="indoc" expression="$ctx:indoc//aaa"/> </log>
but both not work. there way? in advance.
roland
i think both way should work fine. expression support xpath 1.0. can run xpath after "get-property" in expression.
but need check,
make sure use right xpath.
can log/copy get-property('indoc'), , can use xpath tool validate xpath.namespace of xpath in expression,
if xml payload have namespace, make sure xpath namespace right, , declare right ns in property.
Comments
Post a Comment