Convert generated JAXB objects back and force to OpenSAML objects

Brent Putman putmanb at georgetown.edu
Thu Jul 16 21:17:30 EDT 2015



On 7/9/15 3:26 PM, Cantor, Scott wrote:
> On 7/9/15, 3:24 PM, "dev on behalf of Gang Yang" <dev-bounces at shibboleth.net on behalf of gang.yang at shonborn-becker.com> wrote:
>
>> Is there an easy way to convert back and force these generated JAXB objects (for example AuthnQueryType) from and to OpenSAML objects (for example AuthnQuery)?
> Not that I'm aware, apart from brute force through XML roundtrip.

Yes, I'd say that's correct.  Marshall one to a DOM element and then
unmarshall to the other type.  Obviously not very efficient.



More information about the dev mailing list