/**
 * WidgetPriceServiceLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis Wsdl2java emitter.
 */

package samples.userguide.example6;

public class WidgetPriceServiceLocator extends org.apache.axis.client.Service implements samples.userguide.example6.WidgetPriceService {

    // Use to get a proxy class for WidgetPrice
    private final java.lang.String WidgetPrice_address = "http://localhost:8080/axis/services/WidgetPrice";

    public String getWidgetPriceAddress() {
        return WidgetPrice_address;
    }

    public samples.userguide.example6.WidgetPrice getWidgetPrice() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(WidgetPrice_address);
        }
        catch (java.net.MalformedURLException e) {
            return null; // unlikely as URL was validated in WSDL2Java
        }
        return getWidgetPrice(endpoint);
    }

    public samples.userguide.example6.WidgetPrice getWidgetPrice(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            return new samples.userguide.example6.WidgetPriceSoapBindingStub(portAddress, this);
        }
        catch (org.apache.axis.AxisFault e) {
            return null; // ???
        }
    }
}
