Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Unmarshall and validating an SAML file

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Unmarshall and validating an SAML file


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [OpenSAML] Unmarshall and validating an SAML file
  • Date: Sun, 01 Nov 2009 18:51:29 +0100
  • Organization: SWITCH

It's possible. SAML 2 unmarshallers won't work for SAML 1.

murali mca wrote:
Hi
Thanks for all yours help so far.
I am able to resolve the above errors by setting the endorsed files correctly.
I am seeing the below error when I tried to marshal the SAML(generated using SAML1.0) file using saml2.0 API.
SEVERE: This unmarshaller only operates on {urn:oasis:names:tc:SAML:2.0:protocol}Response elements not Response
org.opensaml.xml.io.UnmarshallingException: This unmarshaller only operates
on {urn:oasis:names:tc:SAML:2.0:protocol}Response elements not Response
at
org.opensaml.xml.io.AbstractXMLObjectUnmarshaller.checkElementIsTarget(AbstractXMLObjectUnmarshaller.java:160)
at
org.opensaml.xml.io.AbstractXMLObjectUnmarshaller.unmarshall(AbstractXMLObjectUnmarshaller.java:93)

Please can some one confirm me, if the above error is because of
compatability between SAML generated with SAML1.0 and marshalling using
SAML2.0?
Once again Thanks for all yours help.
Thanks,
Regards
--- On Tue, 27/10/09, Brent Putman
<>
wrote:


From: Brent Putman
<>
Subject: Re: [OpenSAML] Unmarshall and validating an SAML file
To:

Date: Tuesday, 27 October, 2009, 2:01 AM


I don't see anything obviously wrong with what you doing vis-a-vis the
XML parsing. Not much can go wrong there, it's not even the opensaml
code, just JAXP. So check that that is the correct filename, that the
file isn't empty, etc.

Are you sure the error is from that line? I don't see you calling
DefaultBootstrap.bootstrap() in your code snippet. Failing to bootstrap
the library that would most likely generate an NPE a few lines down,
where an attempt would be made to use the (null reference) unmarshaller .



murali mca wrote:

When I ran the above piece of code, I am presenting with
responseRoot: null
"Exception in thread "main" _java.lang.NullPointerException_ "
I am getting the "null", at this line. Element responseRoot =
inCommonMDDoc.getDocumentElement();
Please could you correct me if I am doing wrong in mycode.
Thanks
Regards


<http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew>



Try the new Yahoo! India Homepage. Click here.
http://in.yahoo.com/trynew

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch




Archive powered by MHonArc 2.6.16.

Top of Page