mace-opensaml-users - How to use QName with SAMLAttribute?
Subject: OpenSAML user discussion
List archive
- From: Kamlesh Patel <>
- To:
- Subject: How to use QName with SAMLAttribute?
- Date: Mon, 14 Jul 2003 19:19:29 -0700
Title: Message
I am new to
xml and I am having problem understanding the QName concept.
I am trying
to exchange attributes of type string between two saml aware
apps.
I create the
SAMLAttribute in the following way:
// qname for
Group
QName qname = new QName(
"urn:xyz:group", //java.lang.String namespace,
"Group" //java.lang.String localName
);
QName qname = new QName(
"urn:xyz:group", //java.lang.String namespace,
"Group" //java.lang.String localName
);
// Create a
SAMLAttribute object to be Added to
SAMLAttributeStatement
SAMLAttribute wlesGroup = new SAMLAttribute (
"myGroup", //java.lang.String name,
"urn:xyz:group", //java.lang.String namespace,
qname, //QName type,
0, //long lifetime,
groups //java.util.Collection values
);
SAMLAttribute wlesGroup = new SAMLAttribute (
"myGroup", //java.lang.String name,
"urn:xyz:group", //java.lang.String namespace,
qname, //QName type,
0, //long lifetime,
groups //java.util.Collection values
);
But when I
am trying to reconstruct the object on the other end I get the following
exception:
org.xml.sax.SAXParseException: cvc-elt.4.2: Cannot
resolve 'typens:Group' to a type definition for element
'AttributeValue'.
All I want to do is send a Collection of Strings from one end the
other.
What am I
missing.
Thanks,
Kamlesh
- How to use QName with SAMLAttribute?, Kamlesh Patel, 07/14/2003
- RE: How to use QName with SAMLAttribute?, Scott Cantor, 07/14/2003
- <Possible follow-up(s)>
- RE: How to use QName with SAMLAttribute?, Kamlesh Patel, 07/14/2003
- RE: How to use QName with SAMLAttribute?, Scott Cantor, 07/15/2003
Archive powered by MHonArc 2.6.16.