request.setContextPath("/context");
request.setServletPath("/service.wsdl");
request.setPathInfo(null);
request.setRequestURI("/context/service.wsdl");
SimpleWsdl11Definition definition =
new SimpleWsdl11Definition(new ClassPathResource("echo-input.wsdl", getClass()));
adapter.handle(request, response, definition);
InputStream inputStream = new ByteArrayInputStream(response.getContentAsByteArray());
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();