Java Code Examples for org.springframework.ws.transport.http.MessageDispatcherServlet#setTransformWsdlLocations()
The following examples show how to use
org.springframework.ws.transport.http.MessageDispatcherServlet#setTransformWsdlLocations() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JaxWsClientToSpringWsServerIT.java From tracee with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Before public void before() throws Exception { // Start jetty to provide spring webservice server = new Server(new InetSocketAddress("127.0.0.1", 0)); ServletContextHandler contextHandler = new ServletContextHandler(ServletContextHandler.NO_SECURITY); contextHandler.setContextPath("/"); final MessageDispatcherServlet messageDispatcherServlet = new MessageDispatcherServlet(); messageDispatcherServlet.setContextConfigLocation("classpath:springWsServer.xml"); messageDispatcherServlet.setTransformWsdlLocations(true); contextHandler.addServlet(new ServletHolder(messageDispatcherServlet), "/*"); server.setHandler(contextHandler); server.start(); final String serverUrl = "http://" + server.getConnectors()[0].getName() + "/springws/TestserviceEndpoint"; // Init jaxws client with TraceeClientHandler final JaxwsTestserviceEndpointService endpointService = new JaxwsTestserviceEndpointService(); endpointService.setHandlerResolver(new TraceeClientHandlerResolver()); testservice = endpointService.getCurrentTraceeContextPort(); ((BindingProvider) testservice).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serverUrl); }
Example 2
Source File: WebServiceConfig.java From springboot-learn with MIT License | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); //配置对外服务根路径 return new ServletRegistrationBean(servlet, "/ws/*"); }
Example 3
Source File: WebServiceConfig.java From Spring with Apache License 2.0 | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/ws/*"); }
Example 4
Source File: WebServiceConfig.java From freeacs with MIT License | 5 votes |
@Bean public ServletRegistrationBean<MessageDispatcherServlet> messageDispatcherServlet( ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean<>(servlet, "/ws/*"); }
Example 5
Source File: WebServiceConfig.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/v1/customers/*"); }
Example 6
Source File: WebServiceConfig.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/v1/customers/*"); }
Example 7
Source File: WebServiceConfig.java From ddd-strategic-design-spring-boot with Apache License 2.0 | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/ws/*"); }
Example 8
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/ws/*"); }
Example 9
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 5 votes |
@Bean public ServletRegistrationBean dispatcherServlet(ApplicationContext applicationContext){ MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/services/*"); }
Example 10
Source File: WebServiceConfiguration.java From cukes with Apache License 2.0 | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/ws/*"); }
Example 11
Source File: SimulatorWebServiceAutoConfiguration.java From citrus-simulator with Apache License 2.0 | 5 votes |
@Bean public ServletRegistrationBean<MessageDispatcherServlet> simulatorServletRegistrationBean(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean<>(servlet, getServletMapping()); }
Example 12
Source File: WebServiceConfig.java From tutorials with MIT License | 5 votes |
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/ws/*"); }