if (wsdlProvider == null) {
logger.debug("Unable to WSDL provider for service");
rsp.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
} else {
logger.debug("Returning WSDL");
wsdlProvider.writeWSDL(rsp.getOutputStream(), req);
}
}
} catch (WsException e) {
logger.error("Error creating WSDL", e);
throw new ServletException(e.getMessage(), e);