mutinodebookserviceservicelocator.java

来自「精通Jboss——Ejb和Web Services开发精解的随书源代码」· Java 代码 · 共 106 行

JAVA
106
字号
/**
 * MutiNodeBookServiceServiceLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package com.liuyang.axis.server.MutiNodeBook;

public class MutiNodeBookServiceServiceLocator extends org.apache.axis.client.Service implements com.liuyang.axis.server.MutiNodeBook.MutiNodeBookServiceService {

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

    public java.lang.String getMutiNodeBookServiceAddress() {
        return MutiNodeBookService_address;
    }

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

    public java.lang.String getMutiNodeBookServiceWSDDServiceName() {
        return MutiNodeBookServiceWSDDServiceName;
    }

    public void setMutiNodeBookServiceWSDDServiceName(java.lang.String name) {
        MutiNodeBookServiceWSDDServiceName = name;
    }

    public com.liuyang.axis.server.MutiNodeBook.MutiNodeBookService getMutiNodeBookService() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(MutiNodeBookService_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getMutiNodeBookService(endpoint);
    }

    public com.liuyang.axis.server.MutiNodeBook.MutiNodeBookService getMutiNodeBookService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            com.liuyang.axis.server.MutiNodeBook.MutiNodeBookServiceSoapBindingStub _stub = new com.liuyang.axis.server.MutiNodeBook.MutiNodeBookServiceSoapBindingStub(portAddress, this);
            _stub.setPortName(getMutiNodeBookServiceWSDDServiceName());
            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.liuyang.axis.server.MutiNodeBook.MutiNodeBookService.class.isAssignableFrom(serviceEndpointInterface)) {
                com.liuyang.axis.server.MutiNodeBook.MutiNodeBookServiceSoapBindingStub _stub = new com.liuyang.axis.server.MutiNodeBook.MutiNodeBookServiceSoapBindingStub(new java.net.URL(MutiNodeBookService_address), this);
                _stub.setPortName(getMutiNodeBookServiceWSDDServiceName());
                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 ("MutiNodeBookService".equals(inputPortName)) {
            return getMutiNodeBookService();
        }
        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:8080/axis/services/MutiNodeBookService", "MutiNodeBookServiceService");
    }

    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("MutiNodeBookService"));
        }
        return ports.iterator();
    }

}

⌨️ 快捷键说明

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