Skip to Content.
Sympa Menu

mace-opensaml-users - RE: SAMLSoapBinding.response with exception

Subject: OpenSAML user discussion

List archive

RE: SAMLSoapBinding.response with exception


Chronological Thread 
  • 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




Archive powered by MHonArc 2.6.16.

Top of Page