Can Jackson annotations be used for XML where the element values are embedded/nested?
Hi,
We are trying to process requests that look like:
<Request> <Subject> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" DataType="http://security.bea.com/ssmws/ssm-ws-1.0.wsdl#OESPrincipalInfo"> <AttributeValue>{name=cn=foo,ou=People,dc=xxx,dc=com}+(class=weblogic.security.principal.WLSUserImpl)</AttributeValue> </Attribute> </Subject> . . . </Request>
and we want to leverage Jackson annotations.
We have been able to do that with simpler structured XML, e.g.:
<Request> <Subject>{name=cn=foo,ou=People,dc=xxx,dc=com}+(class=weblogic.security.principal.WLSUserImpl)</AttributeValue> </Subject> . . . </Request>
but are having problems trying to determine how we can handle elements like the above <Subject>, i.e., where the AttributeValue is embedded?
I was thinking that we might possibly use @JacksonXmlText, but we have several similarly structured elements in the message (e.g., besides "Subject", there is "Resource" and "Action") and I found in Issues that only ONE JacksonXmlText can be used.
Thanks, Jim
P.S. I saw the banner about posting usage questions on the Google Groups, but when I checked there, it seems like there wasn't much traffic.