Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JAX-RPC / JAX-WS runtime in Apache Tomcat

I am using Apache Tomcat v6 server. While creating a new Web Service, I get the Web service runtime options for "Apache Axis", "Apache Axis2" and "Apache CXF2.x".

Is it possible to have the runtime as "JAX-RPC" or "Jax-WS"?

EDIT:

I am using Eclipse IDE

like image 399
user182944 Avatar asked Dec 09 '12 04:12

user182944


People also ask

Does Tomcat support JAX-WS?

JAX-WS DependenciesBy default, Tomcat does not comes with any JAX-WS dependencies, So, you have to include it manually. 1. Go here http://jax-ws.java.net/.

What is JAX-RPC used for?

JAX-RPC 1.1 provides core APIs for developing and deploying web services on a Java™ platform and is a part of the Web Services for Java Platform, Enterprise Edition (Java EE) platform. The Java EE platform enables you to develop portable web services. WebSphere® Application Server implements JAX-RPC 1.1 standards.

What is the difference between JAX-RPC and JAX-WS Web services?

One of the main difference between JAX-RPC and JAX-WS is the programming model. A JAX-WS based service uses annotations (such @WebService) to declare webservice endpoints. Use of these annotations obviates the need for deployment descriptors.


1 Answers

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

  • for JAX-RPC you need Axis (1)
  • for JAX-WS use CXF (I believe Axis2 also supports this spec but I've never used it)

If you have a choice I strongly recommend the latter (JAX-WS) as it's the more modern spec and more importantly the toolkits are being actively developed and updated - Axis 1 has been dormant for years and relies on old versions of a number of other libraries.

You're also likely to get better performance with a more modern toolkit like CXF or Axis2, which has been designed from the beginning to use streaming XML APIs wherever possible, rather than building a tree model in memory.

like image 86
Ian Roberts Avatar answered Oct 20 '22 17:10

Ian Roberts