Archive

Archive for the ‘JAX-WS’ Category

JAX-WS with Apache CXF and Eclipse [step2]

août 24, 2011 69 commentaires

In [step1], we have configured CXF Eclipse Plugin to use CXF 2.4.2 and created an empty Dynamic Web project with Tomcat 7.

In this article we will create a sample Java class HelloServiceImpl and publish it as WebService by using CXF Eclipse wizard. Basicly, this wizard will :

Lire la suite…

Publicité
Catégories :Apache CXF, JAX-WS

JAX-WS with Apache CXF and Eclipse [step1]

août 23, 2011 14 commentaires

Few months ago, I had to migrate WebServices from my professional project based on Axis to JAX-WS which is the Java API for XML Web Services supported by the Java Platform, Standard Edition 6 (Java SE 6).

There are several implementations of JAX-WS like :

In my case, my professional project doesn’t use Spring. We have chosen Apache CXF which use Spring by default but you can manage CXF without Spring.

I have discovered and learned CXF with Eclipse JEE Indigo (works too with Eclipse JEE Helios) which provides Wizard to generate JAX-WS annotation and initialize CXF application. I think that playing with the CXF Eclipse Wizard is a good start point to learn CXF, so I decided to write some articles called JAX-WS with Apache CXF and Eclipse (this link is the plan of articles) which explains step by step how to generate WebService and Consumer of WebService with CXF Eclipse Wizard.

In my articles I will use :

  • the last version 2.4.2 of CXF.
  • Tomcat 7 as server.
  • Eclipse JEE Indigo.

But you can do the same thing with another version of CXF and another server. In this article I will explain how to

  1. initialize the CXF Plugin
  2. and create an empty Eclipse Dynamic Web Project with Tomcat 7.

Lire la suite…

Catégories :Apache CXF, JAX-WS