mace-opensaml-users - SAMLSoapBinding.response with exception
Subject: OpenSAML user discussion
List archive
- From: "Mike Ferraro" <>
- To: <>
- Subject: SAMLSoapBinding.response with exception
- Date: Fri, 17 Sep 2004 13:02:41 -0400
When I get an exception in my attribute service, I'd like to send a clean
error message to the attribute client. I'm trying to do something like
this...
catch (Exception e) {
// processException logs information, and creates a basic SAMLResponse
element for the response
// to the attribute client, with any required fields populated
samlResp = processException(e, appName, userId);
String statusMsg = "Unable to process the attribute request due to a
system error.";
SAMLException se = new SAMLException(SAMLException.RESPONDER, statusMsg,
e);
// respond with SAMLSoapBinding.respond()
binding.respond(resp, samlResp, se);
}
I've tried several different variations with the binding.respond parameters,
but no matter what I try, my client always gets this error:
[ERROR] [17 Sep 2004 12:33:05,609] send() received an invalid content type
in the response (text/html), with the following content:
Any ideas on what I'm doing wrong?
Thanks,
Mike
- 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.