cxf - How configure JAX-WS for the WLP v 16.0.0.4 -
i use jaxws-2.2 feature , need know how configure jax-ws wlp v 16.0.0.4.
wlp uses apache cxf implementation jax-ws. apache cxf jax-ws configuration includes next 2 steps.
create servlet class mapping (org.apache.cxf.transport.servlet.cxfservlet) in web.xml
create jax-ws endpoint configuration (jaxws:endpoint) in cxf-servlet.xml
maybe there other ways configuration jax-ws apache cxf implementation on liberty, however, don't know it. examples cxf-servlet.xml found related spring:
apache cxf http://cxf.apache.org/docs/jax-ws-configuration.html
ibm https://www.ibm.com/developerworks/websphere/library/techarticles/1001_thaker/1001_thaker.html (please see attached pdf , sample application).
i couldn't find cxf-servlet.xml example pure java ee application without spring (and others 3rd party) dependencies.
kind regards,
alexander
once you've added jax-ws feature server.xml, easiest thing create war file class in it, servlet, class has @webservice annotation on instead of @webservlet. public methods become webservice operations. wsdl produced automatically when deploy war file. it's exact url detectable looking @ liberty's messages.log file. web.xml optional.
Comments
Post a Comment