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.
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!