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.

  1. create servlet class mapping (org.apache.cxf.transport.servlet.cxfservlet) in web.xml

  2. 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:

  1. https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.1/html/deploying_into_a_web_server/deploycxf.html

  2. apache cxf http://cxf.apache.org/docs/jax-ws-configuration.html

  3. 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

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -