www.pudn.com > google_examples.zip > RenderServer3DLocator.java, change:2002-05-05,size:2238b


/** 
 * 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())); 
    } 
 
}