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: Brent Putman <>
  • To:
  • Subject: Re: [OpenSAML] Unmarshall and validating an SAML file
  • Date: Thu, 22 Oct 2009 18:56:03 -0400

If your file data is literally as you originally posted, for example:

<Response IssueInstant="2009-09-04T13:37:33Z" MajorVersion="1"
MinorVersion="1" ID="1bc6d017-f9bd-4333-a618-a73cd4ea51ac">


then it is in fact invalid, b/c you don't have any namespace
declarations in there at all. SAML (both v1 and v 2) is always
namespace-qualified. The schema validation is then correctly reporting
that it does not know about any declaration for a (non-namespace
qualified) Element called 'Response'.

You need to add the appropriate namespace declarations to you SAML data.

--Brent




murali mca wrote:
>
> Thanks for the reply.
>
> After using FileInputStream,I am able to get rid of the error. Now I
> am getting with below "SAX ParserException" error.
>
> org.xml.sax.SAXParseException
> : cvc-elt.1: Cannot find the declaration of element 'Response'.
> a
>



Archive powered by MHonArc 2.6.16.

Top of Page