Search Stub

Listing 1. The service interface is implemented by a stub class called AmazonSearchPort_Stub.java, which is the class the Web service client will use.

public class AmazonSearchService_Impl extends
  com.sun.xml.rpc.client.BasicService implements 
    AmazonSearchService {
  private static final QName serviceName = 
    new QName("http://soap.amazon.com", 
    "AmazonSearchService");
  private static final QName 
    ns1_AmazonSearchPort_QNAME = new QName(
    "http://soap.amazon.com", "AmazonSearchPort");
  private static final Class 
    amazonSearchPort_PortClass =
    javapro.amazon.AmazonSearchPort.class;

  public java.rmi.Remote getPort(
    QName portName, Class serviceDefInterface) 
    throws javax.xml.rpc.ServiceException 
  {
    // implementation elided
  }

  public java.rmi.Remote getPort(
    Class serviceDefInterface) 
    throws javax.xml.rpc.ServiceException 
  {
    // implementation elided
  }

  public javapro.amazon.AmazonSearchPort 
    getAmazonSearchPort() {
    String[] roles = new String[] {};

    javapro.amazon.AmazonSearchPort_Stub stub = 
      new javapro.amazon.AmazonSearchPort_Stub(
      handlerChain);
    return stub;
  }
}