Found a solution that works:
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
public ServletRegistrationBean dispatcherServlet() {
CXFServlet cxfServlet = new CXFServlet();
return new ServletRegistrationBean(cxfServlet, "/api/*");
}
@Bean(name="cxf")
public SpringBus springBus() {
return new SpringBus();
}
@Bean
public MyServicePortType myService() {
return new MyServiceImpl();
}
@Bean
public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(springBus(), myService());
endpoint.publish("/MyService");
return endpoint;
}
The solution is the javax.xml.ws.Endpoint with the
org.apache.cxf.jaxws.EndpointImpl that substitutes the function of
<jaxws:endpoint>-tag in XML-Config
With this you can call the Service via http://localhost:8080/api/MyService
--
View this message in context:
http://cxf.547215.n5.nabble.com/Exists-any-jaxws-endpoint-annotation-tp4935715p5755399.html
Sent from the cxf-user mailing list archive at Nabble.com.