Loading ...
Sorry, an error occurred while loading the content.

RE: [soapbuilders] How client can get SOAP fault if response code is 500

Expand Messages
  • Karr, David
    Never mind. I just had to read the error stream, not the input stream.
    Message 1 of 2 , Jun 2, 2004
    • 0 Attachment
      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?
    Your message has been successfully submitted and would be delivered to recipients shortly.