mace-opensaml-users - RE: SAMLSoapBinding.response with exception
Subject: OpenSAML user discussion
List archive
- From: "Scott Cantor" <>
- To: "'Mike Ferraro'" <>, <>
- Subject: RE: SAMLSoapBinding.response with exception
- Date: Mon, 20 Sep 2004 15:50:44 -0400
- Organization: The Ohio State University
> Gotcha. I should have realized that from the source code. It works fine
> now that I don't pass an exception, but I have to modify the status code
> and message in my SAMLResponse by pulling out the DOM and manually
> changing thestatus values. Is there another way to specify a response
> status other than samlp:Success, or is manually changing it the only way?
Yes, you can pass a SAMLException into the SAMLResponse constructor itself,
which it turns into a Status element. There is an imperfect but general
correspondence between the Exception objects and the Status DOM.
E.g:
SAMLException e=new SAMLException(SAMLException.REQUESTER, "Message");
SAMLResponse r=new SAMLResponse(e); // or something like this...
I don't have the class in front of me, but there's a SAMLException parameter
in the constructor somewhere.
-- Scott
- OpenSAML on Websphere/Solaris, Sanga Viswanathan, 09/13/2004
- RE: OpenSAML on Websphere/Solaris, Scott Cantor, 09/13/2004
- RE: OpenSAML on Websphere/Solaris, Sanga Viswanathan, 09/13/2004
- RE: OpenSAML on Websphere/Solaris, Scott Cantor, 09/13/2004
- SAMLSoapBinding.response with exception, Mike Ferraro, 09/17/2004
- RE: SAMLSoapBinding.response with exception, Scott Cantor, 09/17/2004
- Re: SAMLSoapBinding.response with exception, Mike Ferraro, 09/20/2004
- RE: SAMLSoapBinding.response with exception, Scott Cantor, 09/20/2004
- Re: SAMLSoapBinding.response with exception, Mike Ferraro, 09/20/2004
- RE: SAMLSoapBinding.response with exception, Scott Cantor, 09/20/2004
- Re: SAMLSoapBinding.response with exception, Mike Ferraro, 09/20/2004
- RE: SAMLSoapBinding.response with exception, Scott Cantor, 09/17/2004
- SAMLSoapBinding.response with exception, Mike Ferraro, 09/17/2004
- org.xml.sax.SAXParseException: Content is not allowed in prolog, Jason Pedone, 09/20/2004
- Re: org.xml.sax.SAXParseException: Content is not allowed in prolog, Paul Devine, 09/20/2004
- RE: org.xml.sax.SAXParseException: Content is not allowed in prolog, Scott Cantor, 09/20/2004
- RE: OpenSAML on Websphere/Solaris, Scott Cantor, 09/13/2004
- RE: OpenSAML on Websphere/Solaris, Sanga Viswanathan, 09/13/2004
- RE: OpenSAML on Websphere/Solaris, Scott Cantor, 09/13/2004
Archive powered by MHonArc 2.6.16.