ERROR-while SAML Parse in Open Saml 3.1.1

Brent Putman putmanb at georgetown.edu
Wed Jun 17 13:53:46 EDT 2015



On 6/17/15 10:27 AM, Sandeep urs wrote:
>
> Element metadataRoot = document.getDocumentElement();
> QName qName = new
> QName(metadataRoot.getNamespaceURI(),metadataRoot.getLocalName(),
> metadataRoot.getPrefix());
> unmarshaller=
> org.opensaml.core.xml.util.XMLObjectSupport.getUnmarshaller(qName);

Scott already gave the answer to your problem.  Unrelated to that:  the
above is more complex than it needs to be.  We support lookup of
Unmarshallers via direct input of an Element, in addition to a QName.

So the last line could just be:

    unmarshaller=
org.opensaml.core.xml.util.XMLObjectSupport.getUnmarshaller(metadataRoot);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150617/91cfb22f/attachment.html>


More information about the dev mailing list