File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Web service development using Axis 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Web service development using Axis 2" Watch "Web service development using Axis 2" New topic

Web service development using Axis 2

R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
When I go through a simple NetBeans tutorial to develop a web service, I end up with code like this:

And I can relate the above code to annotations like @WebService, the message handlers, etc. which is consistent with the web service certification objectives. Using Axis 2 (and probably also Axis?), all I do is supply a class:

And lo and behold! it generates the web service (Spring WS also does this), including bindings for SOAP 1.2, SOAP 1.1 and HTTP/REST! Amazing! However, with Axis, there is no additional generated code where I can see annotations like @WebService, @WebMethod, etc.

Two questions:

1. Is development using Axis just a different way to develop web services that is not compliant with JAX-WS (but compliant with SOAP, etc. nevertheless)?
2. My experience is with Spring web services, where I provide the XSDs with the request and response element names as expected by Spring WS, and it generates the WSDL. In other words, the WSDL is generated using a supplied schema. But with Axis 2, the WSDL is generated from the Java code. So is Axis 2 the same as JAX-RPC?

Or am I completely and thoroughly confused with all this? LOL

Please help. Thanks in advance!

R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Ok. Got it. It is all explained here:

Thank you.

It is sorta covered in the JavaRanch Style Guide.
subject: Web service development using Axis 2
Similar Threads
Error while deploying the war file using command "asant deploy"
IWAB0489E Error when deploying Web service to Axis runtime
JAX-WS wsgen using Maven2
Issue while deploying web service jwstutorial example CLI171
Issue related to JAX-WS and Maven