public String getServletInfo() {
return "Webservice Servlet " + getService();
}
public void service(final ServletRequest req, final ServletResponse res) throws ServletException, IOException {
final HttpListener service = getService();
if (service == null) throw new ServletException("WebServiceContainer has not been set");
final ServletEndpointContext context = getContext();
endpointContext.set(new InvocationContext((HttpServletRequest) req));
try {
res.setContentType("text/xml");
final HttpRequest httpRequest = new ServletRequestAdapter((HttpServletRequest) req, (HttpServletResponse) res, config.getServletContext());
final HttpResponse httpResponse = new ServletResponseAdapter((HttpServletResponse) res);
if (pojo != null) {
req.setAttribute(WsConstants.POJO_INSTANCE, pojo);
}
try {
service.onMessage(httpRequest, httpResponse);
} catch (final IOException e) {
throw e;
} catch (final ServletException e) {
throw e;
} catch (final Exception e) {