⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 awsecommerceservicelocator.java

📁 amazon web开发的例子
💻 JAVA
字号:
/**
 * AWSECommerceServiceLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package com.amazon.xml.AWSECommerceService;

public class AWSECommerceServiceLocator extends org.apache.axis.client.Service implements com.amazon.xml.AWSECommerceService.AWSECommerceService {

    // Use to get a proxy class for AWSECommerceServicePort
    private final java.lang.String AWSECommerceServicePort_address = "http://soap.amazon.com/onca/soap?Service=AWSECommerceService";

    public java.lang.String getAWSECommerceServicePortAddress() {
        return AWSECommerceServicePort_address;
    }

    // The WSDD service name defaults to the port name.
    private java.lang.String AWSECommerceServicePortWSDDServiceName = "AWSECommerceServicePort";

    public java.lang.String getAWSECommerceServicePortWSDDServiceName() {
        return AWSECommerceServicePortWSDDServiceName;
    }

    public void setAWSECommerceServicePortWSDDServiceName(java.lang.String name) {
        AWSECommerceServicePortWSDDServiceName = name;
    }

    public com.amazon.xml.AWSECommerceService.AWSECommerceServicePortType getAWSECommerceServicePort() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(AWSECommerceServicePort_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getAWSECommerceServicePort(endpoint);
    }

    public com.amazon.xml.AWSECommerceService.AWSECommerceServicePortType getAWSECommerceServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            com.amazon.xml.AWSECommerceService.AWSECommerceServiceBindingStub _stub = new com.amazon.xml.AWSECommerceService.AWSECommerceServiceBindingStub(portAddress, this);
            _stub.setPortName(getAWSECommerceServicePortWSDDServiceName());
            return _stub;
        }
        catch (org.apache.axis.AxisFault e) {
            return null;
        }
    }

    /**
     * For the given interface, get the stub implementation.
     * If this service has no port for the given interface,
     * then ServiceException is thrown.
     */
    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.amazon.xml.AWSECommerceService.AWSECommerceServicePortType.class.isAssignableFrom(serviceEndpointInterface)) {
                com.amazon.xml.AWSECommerceService.AWSECommerceServiceBindingStub _stub = new com.amazon.xml.AWSECommerceService.AWSECommerceServiceBindingStub(new java.net.URL(AWSECommerceServicePort_address), this);
                _stub.setPortName(getAWSECommerceServicePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }

    /**
     * For the given interface, get the stub implementation.
     * If this service has no port for the given interface,
     * then ServiceException is thrown.
     */
    public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        if (portName == null) {
            return getPort(serviceEndpointInterface);
        }
        String inputPortName = portName.getLocalPart();
        if ("AWSECommerceServicePort".equals(inputPortName)) {
            return getAWSECommerceServicePort();
        }
        else  {
            java.rmi.Remote _stub = getPort(serviceEndpointInterface);
            ((org.apache.axis.client.Stub) _stub).setPortName(portName);
            return _stub;
        }
    }

    public javax.xml.namespace.QName getServiceName() {
        return new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "AWSECommerceService");
    }

    private java.util.HashSet ports = null;

    public java.util.Iterator getPorts() {
        if (ports == null) {
            ports = new java.util.HashSet();
            ports.add(new javax.xml.namespace.QName("AWSECommerceServicePort"));
        }
        return ports.iterator();
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -