JAX-RPC / JAX-WS runtime in Apache Tomcat

I am using Apache Tomcat v6 server. When I create a new web service, I get the web service runtime parameters for Apache Axis, Apache Axis2, and Apache CXF2.x.

Is it possible for runtime to run as "JAX-RPC" or "Jax-WS"?

EDIT:

I am using the Eclipse IDE

+7
source share
3 answers

JAX-RPC and JAX-WS are specifications, Axis, Axis2 and CXF are implementations.

  • for JAX-RPC you need an axis (1)
  • CXF is used for JAX-WS (I believe Axis2 also supports this specification, but I never used it)

If you have a choice, I highly recommend the latter (JAX-WS), as it is more modern, and, more importantly, the toolkit is being actively developed and updated. Axis 1 has been inactive for many years and relies on older versions for a number of other libraries.

You can also get better performance with more advanced tools like CXF or Axis2, which was designed from the very beginning to use streaming XML APIs where possible, instead of creating a tree model in memory.

+14
source

I would like to expand and answer the question of Ian Roberts and give you more options.

Jax-rpc

This is the oldest intern. You can still find a JAX-RPC SI implementation for it (standard implementation): http://java.net/projects/jax-rpc/

In addition, many of the JAX-WS implementations will implement the old JAX-RPC standard. JAX-WS replaced JAX-RPC, and you won’t need it if you are creating a new project.

Jax-ws

JAX-WS Standard: http://jcp.org/en/jsr/detail?id=224

JAX-WS implementations:

JAX-WS RI (reference implementation): http://jax-ws.java.net/

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

Apache Axis2: http://axis.apache.org/axis2/java/core/

JBOSS-WS: http://www.jboss.org/jbossws (It’s easy if you select jboss on top of a naked cat, the pros and cons come with it)

Choosing the right library

If you just want to start and run something, you can just use eclipse to use Axis2 or CXF. (Just google "Eclipse Axis2" or "Eclipse CXF" and you will find many tutorials and videos when getting up and running.) I personally use JAX-WS RI, but all of the above options have their pros and cons.

+5
source

I can only answer half of this question. Yes, it is possible to run JAX-WS and JAX-RPC on Tomcat 6:

Jax-ws

http://www.mkyong.com/webservices/jax-ws/deploy-jax-ws-web-services-on-tomcat/

OR

http://puretech.paawak.com/2010/03/09/running-jax-ws-with-tomcat/

Jax-rpc

see the last 2 paragraphs at http://tomcat.apache.org/tomcat-6.0-doc/extras.html#Components_list and try experimenting

+3
source