Unmarshalling saml metadata extensions

Brent Putman putmanb at georgetown.edu
Thu May 21 13:07:58 EDT 2015



On 5/21/15 12:56 PM, Maduranga Siriwardena wrote:
>
> As you have mentioned I registered with the element name and type
> name. But still the result is same. Any suggestion where should I
> look for the problem?
>
>

Well, my first guess would be that you still don't have the QName
right.  Note you have to do that for *all* your extension elements.



> /** Default element name */
> public final static QName DEFAULT_ELEMENT_NAME = new
> QName(ExtensionsConstants.EXTENSION_NS, DEFAULT_ELEMENT_LOCAL_NAME,
> ExtensionsConstants.EXTENSION_PREFIX);

I can't see what ExtensionsConstants.EXTENSION_NS is, but based on the
XML you sent it ought to be: org.wso2.  If it's not, that's the
problem. (And don't forget the prefix also).

If it is that namespace URI, then I don't know.  You've still got
something not registered with the correct name, or else you not
effecting the changes properly.

If you still can't get it working, I'd suggest starting with just a
simple unit test to get one of your single custom elements working, and
eliminate the complexity of everything else in the way. 

Turning logging up to DEBUG might also help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150521/27839019/attachment.html>


More information about the dev mailing list