title: CXF with Spring-Boot
body: <p>I am attempting to get CXF and Sprint Boot to play nicely. I have a JAX-WS service endpoint called SubscriberApi. Looking at the spring-boot logs I see successful mapping:</p>
  
  <pre><code>Mapping servlet: 'CXFServlet' to [/api/*]
  Setting the server's publish address to be /SubscriberApi
  </code></pre>
  
  <p>However, I cant seem to get the WSDL when hitting: </p>
  
  <pre><code>http://localhost:8080/api/SubscriberApi?wsdl
  </code></pre>
  
  
  
  <pre class="lang-java prettyprint-override"><code>@Configuration
  @ImportResource({"classpath:META-INF/cxf/cxf.xml"})
  public class CxfConfiguration  {
    @Bean
    public SubscriberApi subscriberApi() {
      return new SubscriberApi();
    }
    @Bean
    public ServletRegistrationBean servletRegistrationBean() {
      CXFServlet cxfServlet = new CXFServlet();
  
      ServletRegistrationBean servletRegistrationBean =
          new ServletRegistrationBean(cxfServlet, "/api/*");
      servletRegistrationBean.setLoadOnStartup(1);
      return servletRegistrationBean;
    }
    @DependsOn("servletRegistrationBean")
    @Bean
    public Endpoint jaxwsEndpoint(SubscriberApi subscriberApi){
      javax.xml.ws.Endpoint jaxwsEndpoint =
          javax.xml.ws.Endpoint.publish("/SubscriberApi", subscriberApi);
        return jaxwsEndpoint;
    }
   }
  </code></pre>