I have to repeat the question: Is there an Annotation that subsitutes the <jaxws:endpoint /> ?
The mentioned SimpleJaxWsServiceExporter seems not suitable for me (according to http://docs.spring.io/spring/docs/current/spring-framework-reference/html/remoting.html#remoting-web-services-jaxws-export-standalone), because I´am using a Tomcat and not the Standalone-Mode. I use Apache CXF-Servlet with Emdedded Tomcat in SpringBoot like that: @ComponentScan @EnableAutoConfiguration @Configuration public class Application { 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(); } } As my SEI and SEI-Implementation-Classes (with @WebService-Annotations) are not mapped to an URL automatically, I am looking for something like: <jaxws:endpoint id="helloWorld" implementor="demo.spring.service.HelloWorldImpl" address="/HelloWorld"/> described in http://cxf.apache.org/docs/writing-a-service-with-spring.html, without the need to use XML. Willem.Jiang wrote > It's a spring annotation instead of cxf one. > > On Tue Oct 25 23:36:54 2011, David Karlsen wrote: >> You can try >> http://static.springsource.org/spring/docs/2.5.5/api/org/springframework/remoting/jaxws/SimpleJaxWsServiceExporter.html >> to export the beans. >> >> 2011/10/25 zujing< > lzujing@ > >: >>> I'm using CXF with Spring to publish.All works fine. >>> But I think this is very tedious.So much > <jaxws:endpoint> > tag in >>> applicationContext.xml. >>> >>> Exists any > <jaxws:endpoint /> > annotation? >>> @Endpoint(address = "HelloWS") >>> @Component >>> @WebService(endpointInterface = "com.yidatec.reach.ws.HelloWS") >>> public class HelloWSImpl implements HelloWS{ >>> >>> >>> In http://cxf.apache.org/docs/annotations.html already exist so much >>> annotations. >>> >>> -- >>> View this message in context: >>> http://cxf.547215.n5.nabble.com/Exists-any-jaxws-endpoint-annotation-tp4935715p4935715.html >>> Sent from the cxf-user mailing list archive at Nabble.com. >>> >> >> >> > > > -- > Willem > ---------------------------------- > FuseSource > Web: http://www.fusesource.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.javaeye.com (Chinese) > Twitter: willemjiang > Weibo: willemjiang -- View this message in context: http://cxf.547215.n5.nabble.com/Exists-any-jaxws-endpoint-annotation-tp4935715p5755397.html Sent from the cxf-user mailing list archive at Nabble.com.
