response.setStatus(soapResponse.isFault() ?
HttpServletResponse.SC_INTERNAL_SERVER_ERROR :
HttpServletResponse.SC_OK) ;
try
{
soapResponse.output(response.getWriter()) ;
}
catch (Throwable th)
{
throw new ServletException("Error sending response", th) ;
}