info(" -> writing xml for : " + req.getService());
//--- this logging is usefull for xml services that are called by javascript code
if (isDebug()) debug("Service xml is :\n" + Xml.getString(response));
InputMethod in = req.getInputMethod();
OutputMethod out = req.getOutputMethod();
if (in == InputMethod.SOAP || out == OutputMethod.SOAP) {
// Did we set up a status code for the response?