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: "Mike Ferraro" <>
  • To: "Scott Cantor" <>, <>
  • Subject: Re: SAMLSoapBinding.response with exception
  • Date: Mon, 20 Sep 2004 16:03:09 -0400

> 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.
>

Ah, yes. I see it now. I guess I was looking for something like a
setStatus/Exception() method. I build the response as I get information
from different methods, so I guess I wasn't looking at doing it all at once
in the constructor. Thanks for the tip.

Mike




Archive powered by MHonArc 2.6.16.

Top of Page