RE: [soapbuilders] How client can get SOAP fault if response code is 500
- Never mind. I just had to read the error stream, not the input stream.
> -----Original Message-----
> From: Karr, David
> The SOAP 1.1 spec says that if you're throwing a SOAP fault
> back through a HTTP connection, you have to set the response
> code to 500.
> In my experiments, I'm building a SOAP fault, and I set that
> as the response text, and I set the response code to 500.
> However, when I read the response on the client, I get the
> 500 response code, but the response text is just an
> IOException, saying that the server returned a 500 response code.
> I've tried commenting out the code that sets the response
> code, and that makes my client see the text of the SOAP
> fault, but according to the spec, I'm supposed to set the
> response code.
> What am I missing?