renderserver3dlocator.java

来自「使用google api 搜索的例子」· Java 代码 · 共 57 行

JAVA
57
字号
/**
 * RenderServer3DLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis Wsdl2java emitter.
 */

package com.xara.soap;

public class RenderServer3DLocator extends org.apache.axis.client.Service implements com.xara.soap.RenderServer3D {

    // Use to get a proxy class for RenderServer3DSoapPort
    private final java.lang.String RenderServer3DSoapPort_address = "http://ws.xara.com/graphicrender/render3d.asp";

    public String getRenderServer3DSoapPortAddress() {
        return RenderServer3DSoapPort_address;
    }

    public com.xara.soap.RenderServer3DSoapPort getRenderServer3DSoapPort() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(RenderServer3DSoapPort_address);
        }
        catch (java.net.MalformedURLException e) {
            return null; // unlikely as URL was validated in WSDL2Java
        }
        return getRenderServer3DSoapPort(endpoint);
    }

    public com.xara.soap.RenderServer3DSoapPort getRenderServer3DSoapPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            return new com.xara.soap.RenderServer3DSoapBindingStub(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.xara.soap.RenderServer3DSoapPort.class.isAssignableFrom(serviceEndpointInterface)) {
                return new com.xara.soap.RenderServer3DSoapBindingStub(new java.net.URL(RenderServer3DSoapPort_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 + =
减小字号Ctrl + -
显示快捷键?