Using a WSDL binding to generate a Java stub
A Java stub consists of a class containing the proxy code that allows an application to call a remote service as a local object. Using a proxy, a developer does not have to specify the URL, namespace, or parameter arrays that the Service and Call objects require.
The stub converts the call to a Java method to a SOAP call. The stub constructor instantiates the service then adds the references for each qualified name, serializable class, and the JavaBean serialization and deserialization factories to Vectors to complete the implementation of the ActuateSoapPort interface, as shown in the following code:
package com.actuate.schemas;
 
public class ActuateSoapBindingStub extends org.apache.axis.client.Stub
implements com.actuate.schemas.ActuateSoapPort_PortType {
private java.util.Vector cachedSerClasses = new java.util.Vector( );
private java.util.Vector cachedSerQNames = new java.util.Vector( )
private java.util.Vector cachedSerFactories = new java.util.Vector( );
private java.util.Vector cachedDeserFactories = new java.util.Vector( );
public ActuateSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
if (service == null) {
super.service = new org.apache.axis.client.Service( );
} else {
super.service = service;
}
qName = new javax.xml.namespace.QName(
"http://schemas.actuate.com/actuate11", "Login");
cachedSerQNames.add(qName);
cls = com.actuate.schemas.Login.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);