Skip to Content.
Sympa Menu

mace-opensaml-users - RE: [OpenSAML] local part cannot be "null" when creating a QName during unmarshalling an Assertion object

Subject: OpenSAML user discussion

List archive

RE: [OpenSAML] local part cannot be "null" when creating a QName during unmarshalling an Assertion object


Chronological Thread 
  • From: "Scott Cantor" <>
  • To: <>
  • Subject: RE: [OpenSAML] local part cannot be "null" when creating a QName during unmarshalling an Assertion object
  • Date: Mon, 1 Mar 2010 16:30:44 -0500
  • Organization: The Ohio State University

> I have the Assertion
> Element that I pass into the Unmarshaller(Element) at which point of time
I
> dont have control how its getting parsed and unmarshalled.

That is not parsing the XML. That's unmarshalling objects from a DOM. The
DOM already exists. Parsing is what happens when you go from XML to a DOM
tree.

> To be honest I am a couple of days old into SAML.

This has nothing to do with SAML or OpenSAML.

> So if you can point here with respect to the
> code where I am going wrong, that will be more helpful -
> Here is all the code that is involved.

No, it isn't. You're missing all of the code that is giving you these
objects:

> SOAPHeader sh = smc.getMessage().getSOAPHeader();
> // check for wsse:security element under SOAP Header
> Node wsseElement = sh.getFirstChild();

The DOM is already broken at that point because it was parsed without
namespace awareness.

-- Scott





Archive powered by MHonArc 2.6.16.

Top of Page