wsuploadfileservicelocator.java

来自「OA典型例子」· Java 代码 · 共 97 行

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

package com.jspsmart.upload.generated;

public class WSUploadFileServiceLocator extends org.apache.axis.client.Service implements com.jspsmart.upload.generated.WSUploadFileService {

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

    public java.lang.String getWSUploadFileAddress() {
        return WSUploadFile_address;
    }

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

    public java.lang.String getWSUploadFileWSDDServiceName() {
        return WSUploadFileWSDDServiceName;
    }

    public void setWSUploadFileWSDDServiceName(java.lang.String name) {
        WSUploadFileWSDDServiceName = name;
    }

    public com.jspsmart.upload.generated.WSUploadFile getWSUploadFile() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(WSUploadFile_address);
        }
        catch (java.net.MalformedURLException e) {
            return null; // unlikely as URL was validated in WSDL2Java
        }
        return getWSUploadFile(endpoint);
    }

    public com.jspsmart.upload.generated.WSUploadFile getWSUploadFile(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            com.jspsmart.upload.generated.WSUploadFileSoapBindingStub _stub = new com.jspsmart.upload.generated.WSUploadFileSoapBindingStub(portAddress, this);
            _stub.setPortName(getWSUploadFileWSDDServiceName());
            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.jspsmart.upload.generated.WSUploadFile.class.isAssignableFrom(serviceEndpointInterface)) {
                com.jspsmart.upload.generated.WSUploadFileSoapBindingStub _stub = new com.jspsmart.upload.generated.WSUploadFileSoapBindingStub(new java.net.URL(WSUploadFile_address), this);
                _stub.setPortName(getWSUploadFileWSDDServiceName());
                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 {
        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://upload.jspsmart.com", "WSUploadFileService");
    }

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

}

⌨️ 快捷键说明

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