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

📄 service1locator.java

📁 使用google api 搜索的例子
💻 JAVA
字号:
/**
 * Service1Locator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis Wsdl2java emitter.
 */

package com.trwest;

public class Service1Locator extends org.apache.axis.client.Service implements com.trwest.Service1 {

    // Use to get a proxy class for Service1Soap
    private final java.lang.String Service1Soap_address = "http://upload.eraserver.net/trwest/trwest_zip4/zip4.asmx";

    public String getService1SoapAddress() {
        return Service1Soap_address;
    }

    public com.trwest.Service1Soap getService1Soap() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(Service1Soap_address);
        }
        catch (java.net.MalformedURLException e) {
            return null; // unlikely as URL was validated in WSDL2Java
        }
        return getService1Soap(endpoint);
    }

    public com.trwest.Service1Soap getService1Soap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            return new com.trwest.Service1SoapStub(portAddress, this);
        }
        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.trwest.Service1Soap.class.isAssignableFrom(serviceEndpointInterface)) {
                return new com.trwest.Service1SoapStub(new java.net.URL(Service1Soap_address), this);
            }
        }
        catch (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()));
    }

}

⌨️ 快捷键说明

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