fundpricesessionfacade_servicelocator.java

来自「EJB+Struts+Webservice实现的开放式基金管理系统」· Java 代码 · 共 218 行

JAVA
218
字号
/**
 * FundPriceSessionFacade_ServiceLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2beta3 Aug 01, 2004 (05:59:22 PDT) WSDL2Java emitter.
 */

package com.fund.fund;

/**
 *
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class FundPriceSessionFacade_ServiceLocator
        extends org.apache.axis.client.Service
        implements com.fund.fund.FundPriceSessionFacade_Service {

        /**
         * FundPriceSessionFacade_address
         */
        private java.lang.String FundPriceSessionFacade_address
                = "http://127.0.0.1:7001/fund/services/FundPriceSessionFacade";

        /**
         * getFundPriceSessionFacadeAddress
         * @return String
         */
        public java.lang.String getFundPriceSessionFacadeAddress() {
        return FundPriceSessionFacade_address;
    }

    /**
     * FundPriceSessionFacadeWSDDServiceName
     */
    private java.lang.String FundPriceSessionFacadeWSDDServiceName
            = "FundPriceSessionFacade";

    /**
     *
     * @return String
     */
    public java.lang.String getFundPriceSessionFacadeWSDDServiceName() {
    return FundPriceSessionFacadeWSDDServiceName;
    }

    /**
     *
     * @param name String
     */
    public void setFundPriceSessionFacadeWSDDServiceName(
            java.lang.String name) {
    FundPriceSessionFacadeWSDDServiceName = name;
    }

    /**
     *
     * @return FundPriceSessionFacade_Port
     * @throws javax.xml.rpc.ServiceException  e
     */
    public com.fund.fund.FundPriceSessionFacade_Port
            getFundPriceSessionFacade()
            throws javax.xml.rpc.ServiceException {
    java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(FundPriceSessionFacade_address);
        }  catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getFundPriceSessionFacade(endpoint);
    }

    /**
     *
     * @param portAddress URL
     * @return FundPriceSessionFacade_Port
     * @throws javax.xml.rpc.ServiceException  e
     */
    public com.fund.fund.FundPriceSessionFacade_Port
            getFundPriceSessionFacade(java.net.URL portAddress)
            throws javax.xml.rpc.ServiceException {
    try {
            com.fund.fund.FundPriceSessionFacadeSoapBindingStub _stub
                    = new com.fund.fund.FundPriceSessionFacadeSoapBindingStub(
                        portAddress, this);
            _stub.setPortName(getFundPriceSessionFacadeWSDDServiceName());
            return _stub;
        } catch (org.apache.axis.AxisFault e) {
            return null;
        }
    }

    /**
     *
     * @param address String
     */
    public void setFundPriceSessionFacadeEndpointAddress(
            java.lang.String address) {
    FundPriceSessionFacade_address = address;
    }

    /**
     *
     * @param serviceEndpointInterface Class
     * @return Remote
     * @throws javax.xml.rpc.ServiceException  e
     */
    public java.rmi.Remote getPort(Class serviceEndpointInterface)
            throws javax.xml.rpc.ServiceException {
        try {
            if (com.fund.fund.FundPriceSessionFacade_Port.class.
                isAssignableFrom(serviceEndpointInterface)) {
                com.fund.fund.FundPriceSessionFacadeSoapBindingStub _stub
                = new com.fund.fund.FundPriceSessionFacadeSoapBindingStub(
                                new java.net.URL(
                                FundPriceSessionFacade_address), this);
                _stub.setPortName(getFundPriceSessionFacadeWSDDServiceName());
                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()));
    }

    /**
     *
     * @param portName QName
     * @param serviceEndpointInterface Class
     * @return Remote
     * @throws javax.xml.rpc.ServiceException  e
     */
    public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
                                   Class serviceEndpointInterface)
            throws javax.xml.rpc.ServiceException {
        if (portName == null) {
            return getPort(serviceEndpointInterface);
        }
        java.lang.String inputPortName = portName.getLocalPart();
        if ("FundPriceSessionFacade".equals(inputPortName)) {
            return getFundPriceSessionFacade();
        }  else  {
            java.rmi.Remote _stub = getPort(serviceEndpointInterface);
            ((org.apache.axis.client.Stub) _stub).setPortName(portName);
            return _stub;
        }
    }

    /**
     *
     * @return QName
     */
    public javax.xml.namespace.QName getServiceName() {
    return new javax.xml.namespace.QName(
            "http://fund.fund.com", "FundPriceSessionFacade");
    }

    /**
     * ports
     */
    private java.util.HashSet ports = null;

    /**
     *
     * @return Iterator
     */
    public java.util.Iterator getPorts() {
    if (ports == null) {
            ports = new java.util.HashSet();
            ports.add(new javax.xml.namespace.QName(
                "http://fund.fund.com", "FundPriceSessionFacade"));
        }
        return ports.iterator();
    }

    /**
     *
     * @param portName String
     * @param address String
     * @throws javax.xml.rpc.ServiceException  e
     */
    public void setEndpointAddress(java.lang.String portName,
                                   java.lang.String address)
            throws javax.xml.rpc.ServiceException {
        if ("FundPriceSessionFacade".equals(portName)) {
            setFundPriceSessionFacadeEndpointAddress(address);
        }  else { // Unknown Port Name
            throw new javax.xml.rpc.ServiceException(
                    "Cannot set Endpoint Address for Unknown Port" + portName);
        }
    }

    /**
     *
     * @param portName QName
     * @param address String
     * @throws javax.xml.rpc.ServiceException  e
     */
    public void setEndpointAddress(
            javax.xml.namespace.QName portName,
            java.lang.String address)
            throws javax.xml.rpc.ServiceException {
        setEndpointAddress(portName.getLocalPart(), address);
    }

}

⌨️ 快捷键说明

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