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

📄 mpsslocator.java

📁 电信ISAG的服务连接和服务
💻 JAVA
字号:
/**
 * MpssLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package cn.com.chinatelecom.www.wsdl.ctcc.mpss;

public class MpssLocator extends org.apache.axis.client.Service implements cn.com.chinatelecom.www.wsdl.ctcc.mpss.Mpss {

    // Use to get a proxy class for mpssSoap12
    private final java.lang.String mpssSoap12_address = "http://localhost/MPSSWS/mpss.asmx";

    public java.lang.String getmpssSoap12Address() {
        return mpssSoap12_address;
    }

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

    public java.lang.String getmpssSoap12WSDDServiceName() {
        return mpssSoap12WSDDServiceName;
    }

    public void setmpssSoap12WSDDServiceName(java.lang.String name) {
        mpssSoap12WSDDServiceName = name;
    }

    public cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap getmpssSoap12() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(mpssSoap12_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getmpssSoap12(endpoint);
    }

    public cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap getmpssSoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap12Stub _stub = new cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap12Stub(portAddress, this);
            _stub.setPortName(getmpssSoap12WSDDServiceName());
            return _stub;
        }
        catch (org.apache.axis.AxisFault e) {
            return null;
        }
    }


    // Use to get a proxy class for mpssSoap
    private final java.lang.String mpssSoap_address = "http://localhost/MPSSWS/mpss.asmx";

    public java.lang.String getmpssSoapAddress() {
        return mpssSoap_address;
    }

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

    public java.lang.String getmpssSoapWSDDServiceName() {
        return mpssSoapWSDDServiceName;
    }

    public void setmpssSoapWSDDServiceName(java.lang.String name) {
        mpssSoapWSDDServiceName = name;
    }

    public cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap getmpssSoap() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(mpssSoap_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getmpssSoap(endpoint);
    }

    public cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap getmpssSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoapStub _stub = new cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoapStub(portAddress, this);
            _stub.setPortName(getmpssSoapWSDDServiceName());
            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.
     * This service has multiple ports for a given interface;
     * the proxy implementation returned may be indeterminate.
     */
    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap.class.isAssignableFrom(serviceEndpointInterface)) {
                cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap12Stub _stub = new cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap12Stub(new java.net.URL(mpssSoap12_address), this);
                _stub.setPortName(getmpssSoap12WSDDServiceName());
                return _stub;
            }
            if (cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoap.class.isAssignableFrom(serviceEndpointInterface)) {
                cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoapStub _stub = new cn.com.chinatelecom.www.wsdl.ctcc.mpss.MpssSoapStub(new java.net.URL(mpssSoap_address), this);
                _stub.setPortName(getmpssSoapWSDDServiceName());
                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 ("mpssSoap12".equals(inputPortName)) {
            return getmpssSoap12();
        }
        else if ("mpssSoap".equals(inputPortName)) {
            return getmpssSoap();
        }
        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://www.chinatelecom.com.cn/wsdl/ctcc/mpss/", "mpss");
    }

    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("mpssSoap12"));
            ports.add(new javax.xml.namespace.QName("mpssSoap"));
        }
        return ports.iterator();
    }

}

⌨️ 快捷键说明

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