/**
 * WorkflowServiceConnectorServiceLocator.java
 *
 * 
 * This file is part of Nautica Workflow.
 * 
 *  Nautica Workflow is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 * 
 *  Nautica Workflow is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with Nautica Workflow; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *  
 * このファイルはWSDLから自動生成されました / [en]-(This file was auto-generated from WSDL)
 * Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java生成器によって / [en]-(by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.)
 */

package jp.co.argo21.nautica.workflow.soap;

public class WorkflowServiceConnectorServiceLocator extends org.apache.axis.client.Service implements jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnectorService {

    public WorkflowServiceConnectorServiceLocator() {
    }


    public WorkflowServiceConnectorServiceLocator(org.apache.axis.EngineConfiguration config) {
        super(config);
    }

    public WorkflowServiceConnectorServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
        super(wsdlLoc, sName);
    }

    // WorkflowServiceConnectorのプロキシクラスの取得に使用します / [en]-(Use to get a proxy class for WorkflowServiceConnector)
    private java.lang.String WorkflowServiceConnector_address = "http://localhost:8080/WorkflowAxis/services/WorkflowServiceConnector";

    public java.lang.String getWorkflowServiceConnectorAddress() {
        return WorkflowServiceConnector_address;
    }

    // WSDDサービス名のデフォルトはポート名です / [en]-(The WSDD service name defaults to the port name.)
    private java.lang.String WorkflowServiceConnectorWSDDServiceName = "WorkflowServiceConnector";

    public java.lang.String getWorkflowServiceConnectorWSDDServiceName() {
        return WorkflowServiceConnectorWSDDServiceName;
    }

    public void setWorkflowServiceConnectorWSDDServiceName(java.lang.String name) {
        WorkflowServiceConnectorWSDDServiceName = name;
    }

    public jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnector getWorkflowServiceConnector() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(WorkflowServiceConnector_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getWorkflowServiceConnector(endpoint);
    }

    public jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnector getWorkflowServiceConnector(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnectorSoapBindingStub _stub = new jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnectorSoapBindingStub(portAddress, this);
            _stub.setPortName(getWorkflowServiceConnectorWSDDServiceName());
            return _stub;
        }
        catch (org.apache.axis.AxisFault e) {
            return null;
        }
    }

    public void setWorkflowServiceConnectorEndpointAddress(java.lang.String address) {
        WorkflowServiceConnector_address = address;
    }

    /**
     * 与えられたインターフェースに対して、スタブの実装を取得します。 / [en]-(For the given interface, get the stub implementation.)
     * このサービスが与えられたインターフェースに対してポートを持たない場合、 / [en]-(If this service has no port for the given interface,)
     * ServiceExceptionが投げられます。 / [en]-(then ServiceException is thrown.)
     */
    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnector.class.isAssignableFrom(serviceEndpointInterface)) {
                jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnectorSoapBindingStub _stub = new jp.co.argo21.nautica.workflow.soap.WorkflowServiceConnectorSoapBindingStub(new java.net.URL(WorkflowServiceConnector_address), this);
                _stub.setPortName(getWorkflowServiceConnectorWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("インターフェースに対するスタブの実装がありません: / [en]-(There is no stub implementation for the interface:)  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }

    /**
     * 与えられたインターフェースに対して、スタブの実装を取得します。 / [en]-(For the given interface, get the stub implementation.)
     * このサービスが与えられたインターフェースに対してポートを持たない場合、 / [en]-(If this service has no port for the given interface,)
     * ServiceExceptionが投げられます。 / [en]-(then ServiceException is thrown.)
     */
    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 ("WorkflowServiceConnector".equals(inputPortName)) {
            return getWorkflowServiceConnector();
        }
        else  {
            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://www.argo21.co.jp/nautica/workflow/soap", "WorkflowServiceConnectorService");
    }

    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("http://www.argo21.co.jp/nautica/workflow/soap", "WorkflowServiceConnector"));
        }
        return ports.iterator();
    }

    /**
    * 指定したポート名に対するエンドポイントのアドレスをセットします / [en]-(Set the endpoint address for the specified port name.)
    */
    public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
        if ("WorkflowServiceConnector".equals(portName)) {
            setWorkflowServiceConnectorEndpointAddress(address);
        }
        else { // Unknown Port Name
            throw new javax.xml.rpc.ServiceException(" 未知のポートに対してはエンドポイントのアドレスをセットできません / [en]-(Cannot set Endpoint Address for Unknown Port)" + portName);
        }
    }

    /**
    * 指定したポート名に対するエンドポイントのアドレスをセットします / [en]-(Set the endpoint address for the specified port name.)
    */
    public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
        setEndpointAddress(portName.getLocalPart(), address);
    }

}
