Java Code Examples for org.springframework.ws.transport.http.MessageDispatcherServlet#setApplicationContext()

The following examples show how to use org.springframework.ws.transport.http.MessageDispatcherServlet#setApplicationContext() . 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: 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 2
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 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: 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 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 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 12
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 13
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 14
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 15
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 16
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 17
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 18
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 19
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 20
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/*");
}