• 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

"Using the annotations in webservice"

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When we follow the java-to-wsdl way of creating the webservices we use annotations for creating the webService class and based on this class we create the wsdl using Java2WSDL tool in axis2.

But when we follow the wsdl-to-ava technique we have a wsdl first and we create the Server side and the client side classes using the WSDL2Java tool.

My question is : Why the Server side classes created by the WSDL2Java tool does not have the annotations which the Webservice class have when we design it manually following the Java-to-wsdl technique.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
The WSDL-to-Java tool cannot create endpoint implementation class(es), but only create one or more interfaces of the service.
It is then up to you to create a class that implements the interface in question and supplies the functionality of your web service.
Best wishes!
 
Guy Emerson
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ivan Krizsan


It is then up to you to create a class that implements the interface in question and supplies the functionality of your web service.



While implementing do we use the annotations(like @WebService, @WebMethod etc. )
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

Guy Emerson wrote:
While implementing do we use the annotations(like @WebService, @WebMethod etc. )


Exactly!
Best wishes!
 
reply
    Bookmark Topic Watch Topic
  • New Topic