The stub-based model generates local stub classes for the proxy from a WSDL document. This is the model used by the WST development tool to create a Web service client. When you change the WSDL document, you must regenerate the stubs. WST provides tools to generate and compile stubs. See “Creating and managing Web service clients”. Along with the stubs, the tools generate additional classes, and a service definition interface (SDI), which is the interface that is derived from a WSDL’s portType. This is the interface you use to access the operations on the Web service. The combination of these files are called client-side artifacts. Client-side artifacts are a collection of files on the client-side that handle communication between a client and a Web service. Generated client-side artifacts must include:
A stub class – for example, AddNumbersStub.java:
public class AddNumbersStub extends org.apache.axis.client.Stub implements client.AddNumbers_Port
A service endpoint interface – for example, AddNumbers_Port.java:
public interface AddNumbers_Port extends java.rmi.Remote
A service definition interface – for example, AddNumbers_Service.java:
public interface AddNumbers_Service extends javax.xml.rpc.Service
An implementation of the service definition interface (the location class to help you find the endpoint) – for example, AddNumbers_ServiceLocator.java:
public class AddNumbers_ServiceLocator extends org.apache.axis.client.Service implements client.AddNumbers_Service