• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

"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!
 
I don't even know how to spell CIA. But this tiny ad does:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic