• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web service development using Axis 2

 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!

Srini
 
R Srini
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok. Got it. It is all explained here: http://ws.apache.org/axis2/1_5_1/jaxws-guide.html

Thank you.

Srini
reply
    Bookmark Topic Watch Topic
  • New Topic