>From the SOAP 1.1 spec: >>> 6.2 SOAP HTTP Response
SOAP HTTP follows the semantics of the HTTP Status codes for communicating status information in HTTP. For example, a 2xx status code indicates that the client's request including the SOAP component was successfully received, understood, and accepted etc. In case of a SOAP error while processing the request, the SOAP HTTP server MUST issue an HTTP 500 "Internal Server Error" response and include a SOAP message in the response containing a SOAP Fault element (see section 4.4) indicating the SOAP processing error. <<< Apache SOAP supports this part of the spec from within the XXXRouterServlet code. When there is a "normal" response, Apache SOAP sends the 200 status. When an exception has been thrown, it sends a 500 status, packaging the exception information in a SOAP Fault in the SOAP Body per the spec. Therefore, if you want to send a 500 status, your code should throw an exception. On 26 Jun 2003 at 19:24, Henk Schipper wrote: > Hi All, > > I have to send a HTTP Status 500 - Internal Server error with a customised > xml-message. The request will be made from a messagerouter request. In the > source I see in the 'MessageRouterServlet.java' in the 'public void doPost' > section ,something about 'status = res.SC_OK;' and 'status = > res.SC_INTERNAL_SERVER_ERROR;'. Where in that part in MessageRouterServlet > is my class loaded? I need to give an extra parameter I think to giveback > the status I want. > > Please HELP! > > Regards, > > Henk > Scott Nichol Do not reply directly to this e-mail address, as it is filtered to only receive e-mail from specific mailing lists.