Skip to Content.
Sympa Menu

mace-opensaml-users - RE: [OpenSAML] Need XMLObject in assertion, I believe

Subject: OpenSAML user discussion

List archive

RE: [OpenSAML] Need XMLObject in assertion, I believe


Chronological Thread 
  • From: "Jason Countryman" <>
  • To:
  • Subject: RE: [OpenSAML] Need XMLObject in assertion, I believe
  • Date: Wed, 21 Apr 2010 17:22:48 -0400

I'm sorry if this is coming off as disrespectful.  It's not my intent.  I'm just trying to jump into an already existing project and add a few things.

I don't understand from the wiki how to add attributes to this element.  This is what I'm trying to use now, and I think is closer than what I had before:

XSStringBuilder stringBuilder111 = (XSStringBuilder) Configuration.getBuilderFactory().getBuilder(XSString.TYPE_NAME);
XSString userRoleValue = stringBuilder111.buildObject("http://www.hhs.gov/healthit/nhin", "UserRole", "nhin");
userRoleValue.getDOM().setAttribute("code", "112247003");
userRoleValue.getDOM().setAttribute("codeSystem", "2.16.840.1.113883.6.96");
userRoleValue.getDOM().setAttribute("codeSystemName", "SNOMED_CT");
userRoleValue.getDOM().setAttribute("displayName", "Medical doctor");

But I'm getting a null pointer at the first getDOM().  I tried marshalling it first as well, but that didn't work either.


______________________________
Jason T. Countryman
Programmer
Community Computer Service


---------- Original Message -----------
From: "Scott Cantor" <>
To: <>
Sent: Wed, 21 Apr 2010 17:03:07 -0400
Subject: RE: [OpenSAML] Need XMLObject in assertion, I believe

> > So there isn't a quick way to add this 1 element?
>
> This is the quick way. The non-quick way is implementing XMLObject wrappers for all of the element types you're adding.
>
> > Is there a sample anywhere that shows the usage of the XMLObject?
>
> We don't have samples. What's in the wiki is what's in the wiki and I believe Brent provided the pointer.
>
> -- Scott
------- End of Original Message -------
This message has been scanned for viruses and dangerous content by MailScanner, SpamAssassin & ClamAV.

This message and any attachments may contain information that is protected by law as privileged and confidential, and
is transmitted for the sole use of the intended recipient(s). If you are not the intended recipient, you are hereby notified
that any use, dissemination, copying or retention of this e-mail or the information contained herein is strictly prohibited.
If you received this e-mail in error, please immediately notify the sender by e-mail, and permanently delete this e-mail.



Archive powered by MHonArc 2.6.16.

Top of Page