You can provide Web services using any of the two approaches:
Inside-out
You start from an implementation which is already available and expose it as a Web service. You create a Web service from a session Enterprise Java Bean or from a pure Java class.
This approach is also called bottom-up .
Outside-in
You start from a WSDL document of a service. In this case, the framework generates the skeleton of the implementation bean and you have to provide your own implementation of the business methods. You can create outside in Web services in session Enterprise Java Beans.
This approach is also called top-down .
Create a Web service.
Create a Web service inside-out.
More information: Providing Web Services Inside Out
Create a Web service outside-in.
More information: Providing Web Services Outside In
Create a TU&C/C Web service.
More information: Providing TU&C/C Web Services
Configure the Web service using design time annotations.
More information: Configuring Web Services at Design Time
Prepare the Web service for publication to the Services Registry.
More information: Adding Classifications to Web Services
Review or edit the Web service artifacts using the JAX-WS Web Services Domain Object Model (DOM)
More information:
More Information