mace-opensaml-users - SAMLAuthorizationQuery and serialization
Subject: OpenSAML user discussion
List archive
- From: mauricio henriquez <>
- To:
- Subject: SAMLAuthorizationQuery and serialization
- Date: Fri, 26 Sep 2003 00:36:42 -0700 (PDT)
hi,
im working on an access control module where one web service needs to query
another web service to
determine if a subject is allowed to perform some action. This can be
achieved using
SAMLAuthorizationDecisionQuery and SAMLDecisionStatement. How can i
"serialize" a
SAMLAuthorizationDecisionQuery object to xml(atleast an xml equivalent) and
then reconstruct it on
the other side. I have tried doing this using the toString() function and
then then using the
constructor that uses a inputstream to re-create it, but this does not seem
to work.
these are some snippets
Document d = XMLUtils.newDocument();
//auth_query is an already made SAMLAuthorizationDecisionQuery object
Node n = auth_query.toDOM(d);
s = XMLUtils.ElementToString((Element)n);
send(s); //send its inside a soap body...
on the other side
s = recieve();
SAMLAuthorizationDecisionQuery sudq = new
SAMLAuthorizationDecisionQuery(
new ByteArrayInputStream(s.getBytes()));
This construction throws an error like this
Cannot find the declaration of element 'AuthorizationDecisionQuery'
any ideas would be helpfull.
cheers
Mauricio
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
---------------------------------------------------mace-opensaml-users-+
For list utilities, archives, subscribe, unsubscribe, etc. please visit the
ListProc web interface at
http://archives.internet2.edu/
---------------------------------------------------mace-opensaml-users--
- SAMLAuthorizationQuery and serialization, mauricio henriquez, 09/26/2003
- RE: SAMLAuthorizationQuery and serialization, Scott Cantor, 09/26/2003
Archive powered by MHonArc 2.6.16.