OpenSAML - Trouble with XSAnyImpl
Nicolas Peifer
nicolaspeifer at gmx.de
Wed Sep 7 17:00:35 BST 2011
Brent Putman wrote:
> I think your basic issue is: why is the unmarshalled object, at runtime,
> an XSAny?
Yes.
> It's probably because you forgot to declare the custom
> builder/marshaller/unmarshaller set for that custom element or xsi:type.
> So when it gets unmarshalled, it is "unknown" to OpenSAML and winds up
> getting handled as an XSAny (which has nothing to do with the schema
> particle xs:anyType btw, our docs are very confusing on this point). So
> just register your custom XMLObject providers with OpenSAML either
> declaratively or programmatically, and that should take care of it.
Yes, I forgot to register my custom builders with
Configuration.getBuilderFactory().registerBuilder(...). Now it seems to work.
So, thanks a lot Brent and Nick for your fast answers and hints.
Regards
Nicolas
More information about the dev
mailing list