{
// Unable to connect to server
// We create a new ErrorResponse and return the XML response.
ErrorResponse errorResponse = new ErrorResponse( 0, ErrorResponseType.COULD_NOT_CONNECT, e.getMessage() );
errorResponse.toDsml( xmlResponse.getRootElement() );
return styleDocument( xmlResponse, "DSMLv2.xslt" ).asXML();
}
// Processing BatchRequest:
// - Parsing and Getting BatchRequest