org.springframework.ws.transport.http.MessageDispatcherServlet Java Examples

The following examples show how to use org.springframework.ws.transport.http.MessageDispatcherServlet. 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 vote down vote up
@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 spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {

  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #3
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(
    ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #4
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #5
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #6
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #7
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #8
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(
        ApplicationContext applicationContext) {

    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);

    return new ServletRegistrationBean(servlet,
            "/codenotfound/ws/*");
}
 
Example #9
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #10
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {

  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #11
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(
        ApplicationContext applicationContext) {

    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);

    return new ServletRegistrationBean(servlet,
            "/codenotfound/ws/*");
}
 
Example #12
Source File: WebServiceConfig.java    From ddd-strategic-design-spring-boot with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/ws/*");
}
 
Example #13
Source File: WebServiceConfig.java    From spring-boot-samples with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
	MessageDispatcherServlet servlet = new MessageDispatcherServlet();
	servlet.setApplicationContext(applicationContext);
	servlet.setTransformWsdlLocations(true);
	return new ServletRegistrationBean(servlet, "/ws/*");
}
 
Example #14
Source File: WebServiceConfig.java    From spring-boot-samples with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean 
			dispatcherServlet(ApplicationContext applicationContext){
	MessageDispatcherServlet servlet = new MessageDispatcherServlet();
	servlet.setApplicationContext(applicationContext);
	servlet.setTransformWsdlLocations(true);
	return new ServletRegistrationBean(servlet, "/services/*");
}
 
Example #15
Source File: WebServiceConfiguration.java    From cukes with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/ws/*");
}
 
Example #16
Source File: SimulatorWebServiceAutoConfiguration.java    From citrus-simulator with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean<MessageDispatcherServlet> simulatorServletRegistrationBean(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean<>(servlet, getServletMapping());
}
 
Example #17
Source File: WebServiceConfig.java    From tutorials with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/ws/*");
}
 
Example #18
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(
    ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #19
Source File: WebServiceConfig.java    From Spring with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/ws/*");
}
 
Example #20
Source File: WebServiceConfig.java    From freeacs with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean<MessageDispatcherServlet> messageDispatcherServlet(
    ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);
  servlet.setTransformWsdlLocations(true);
  return new ServletRegistrationBean<>(servlet, "/ws/*");
}
 
Example #21
Source File: WebServiceConfig.java    From cloud-native-microservice-strangler-example with GNU General Public License v3.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/v1/customers/*");
}
 
Example #22
Source File: WebServiceConfig.java    From cloud-native-microservice-strangler-example with GNU General Public License v3.0 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/v1/customers/*");
}
 
Example #23
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #24
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {

  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #25
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #26
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean<Servlet> messageDispatcherServlet(
    ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet =
      new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean<>(servlet,
      "/codenotfound/ws/*");
}
 
Example #27
Source File: WebServiceConfig.java    From springboot-learn with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    //配置对外服务根路径
    return new ServletRegistrationBean(servlet, "/ws/*");
}
 
Example #28
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(
    ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}
 
Example #29
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(
        ApplicationContext applicationContext) {

    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);

    return new ServletRegistrationBean(servlet,
            "/codenotfound/ws/*");
}
 
Example #30
Source File: WebServiceConfig.java    From spring-ws with MIT License 5 votes vote down vote up
@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
  MessageDispatcherServlet servlet = new MessageDispatcherServlet();
  servlet.setApplicationContext(applicationContext);

  return new ServletRegistrationBean(servlet, "/codenotfound/ws/*");
}