Hi,
I have just started working with a Spring boot project. This currently works and supports JSON responses, and I am trying to add support for XML responses. Being new, it's been a struggle (that is an understatement :)!), but the last problem that I am encountering is that there are 2 situations where there are multiple levels with duplicated element names.
The responses that I am working with are XACML 2.0 responses, and I think that they generated the model classes with XJC(?) and the XACML 2.0 XSD.
The "expected" response message is (for example) supposed to look like:
<Response xmlns:ns2="urn:oasis:names:tc:xacml:2.0:policy:schema:os"
xmlns:ns3="urn:oasis:names:tc:xacml:2.0:context:schema:os">
<ns3:Result ResourceId="xxxxxxxxxxxxxxxxxxxx">
<ns3:Decision>Permit</ns3:Decision>
<ns3:Status>
<ns3:StatusCode value="urn:oasis:names:tc:xacml:1.0:status:ok"/>
</ns3:Status>
<ns2:Obligations>
<ns2:Obligation FulfillOn="Permit"
</ns2:Obligation>
<ns2:Obligation FulfillOn="Permit"
</ns2:Obligation>
</ns2:Obligations>
</ns3:Result>
</Response>
But, the responses that I actually getting look like the following:
<Response xmlns:ns2="urn:oasis:names:tc:xacml:2.0:policy:schema:os"
xmlns:ns3="urn:oasis:names:tc:xacml:2.0:context:schema:os">
<ns3:Result>
<ns3:Result ResourceId="
xxxxxxxxxxxxxxxxxxxx ">
<ns3:Decision>Permit</ns3:Decision>
<ns3:Status>
<ns3:StatusCode value="urn:oasis:names:tc:xacml:1.0:status:ok"/>
</ns3:Status>
<ns2:Obligations>
<ns2:Obligation FulfillOn="Permit"
<ns2:AttributeAssignment>
</ns2:AttributeAssignment>
</ns2:Obligation>
<ns2:Obligation FulfillOn="Permit"
<ns2:AttributeAssignment>
</ns2:AttributeAssignment>
</ns2:Obligation>
</ns2:Obligations>
</ns3:Result>
</ns3:Result>
</Response>
Notice that there are 2 levels with <ns3:Result> and also 2 levels with <ns2:AttributeAssignment>?
What kind of scenario might be causing that?
As I mentioned, I am really new to using Jackson, so please let me know what information might help to figure what the problem is?
Thanks,
Jim