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

📄 checkuserloginmgrservicelocator.java

📁 《精通SOA:基于服务总线的Struts+EJB+Web Service整合应用开发》原书的实例代码
💻 JAVA
字号:
/**
 * CheckUserLoginMgrServiceLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package localhost.webModule.services.checkUserLoginService;

public class CheckUserLoginMgrServiceLocator extends org.apache.axis.client.Service implements localhost.webModule.services.checkUserLoginService.CheckUserLoginMgrService {

    public CheckUserLoginMgrServiceLocator() {
    }


    public CheckUserLoginMgrServiceLocator(org.apache.axis.EngineConfiguration config) {
        super(config);
    }

    public CheckUserLoginMgrServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
        super(wsdlLoc, sName);
    }

    // Use to get a proxy class for checkUserLoginService
    private java.lang.String checkUserLoginService_address = "http://localhost:7001/checkUserLoginInbound";

    public java.lang.String getcheckUserLoginServiceAddress() {
        return checkUserLoginService_address;
    }

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

    public java.lang.String getcheckUserLoginServiceWSDDServiceName() {
        return checkUserLoginServiceWSDDServiceName;
    }

    public void setcheckUserLoginServiceWSDDServiceName(java.lang.String name) {
        checkUserLoginServiceWSDDServiceName = name;
    }

    public localhost.webModule.services.checkUserLoginService.CheckUserLoginMgr getcheckUserLoginService() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(checkUserLoginService_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getcheckUserLoginService(endpoint);
    }

    public localhost.webModule.services.checkUserLoginService.CheckUserLoginMgr getcheckUserLoginService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            localhost.webModule.services.checkUserLoginService.CheckUserLoginServiceSoapBindingStub _stub = new localhost.webModule.services.checkUserLoginService.CheckUserLoginServiceSoapBindingStub(portAddress, this);
            _stub.setPortName(getcheckUserLoginServiceWSDDServiceName());
            return _stub;
        }
        catch (org.apache.axis.AxisFault e) {
            return null;
        }
    }

    public void setcheckUserLoginServiceEndpointAddress(java.lang.String address) {
        checkUserLoginService_address = address;
    }

    /**
     * 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 (localhost.webModule.services.checkUserLoginService.CheckUserLoginMgr.class.isAssignableFrom(serviceEndpointInterface)) {
                localhost.webModule.services.checkUserLoginService.CheckUserLoginServiceSoapBindingStub _stub = new localhost.webModule.services.checkUserLoginService.CheckUserLoginServiceSoapBindingStub(new java.net.URL(checkUserLoginService_address), this);
                _stub.setPortName(getcheckUserLoginServiceWSDDServiceName());
                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);
        }
        java.lang.String inputPortName = portName.getLocalPart();
        if ("checkUserLoginService".equals(inputPortName)) {
            return getcheckUserLoginService();
        }
        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://localhost:7001/webModule/services/checkUserLoginService", "CheckUserLoginMgrService");
    }

    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("http://localhost:7001/webModule/services/checkUserLoginService", "checkUserLoginService"));
        }
        return ports.iterator();
    }

    /**
    * Set the endpoint address for the specified port name.
    */
    public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
        
if ("checkUserLoginService".equals(portName)) {
            setcheckUserLoginServiceEndpointAddress(address);
        }
        else 
{ // Unknown Port Name
            throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
        }
    }

    /**
    * Set the endpoint address for the specified port name.
    */
    public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
        setEndpointAddress(portName.getLocalPart(), address);
    }

}

⌨️ 快捷键说明

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