/**
 * ARServiceLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */


package gov.va.med.hdr.ars.client.webservice;


import java.rmi.RemoteException;


public class ARServiceLocator
{

    // Use to get a proxy class for AggregateReportingServicePort
    private java.lang.String AggregateReportingServicePort_address = "http://localhost:7000/AggregateReportingService/ARService";


    public java.lang.String getAggregateReportingServicePortAddress( )
    {
        return AggregateReportingServicePort_address;
    }

    // The WSDD service name defaults to the port name.
    private java.lang.String AggregateReportingServicePortWSDDServiceName = "AggregateReportingServicePort";


    public java.lang.String getAggregateReportingServicePortWSDDServiceName( )
    {
        return AggregateReportingServicePortWSDDServiceName;
    }


    public void setAggregateReportingServicePortWSDDServiceName( java.lang.String name )
    {
        AggregateReportingServicePortWSDDServiceName = name;
    }


    public gov.va.med.hdr.ars.client.webservice.AggregateReportingServiceInterface getAggregateReportingServicePort( )
    {
        java.net.URL endpoint = null;
        try
        {
            endpoint = new java.net.URL( AggregateReportingServicePort_address );
        }
        catch ( java.net.MalformedURLException e )
        {
            //throw new ArsServiceException( e );
        }
        return getAggregateReportingServicePort( endpoint );
    }


    public gov.va.med.hdr.ars.client.webservice.AggregateReportingServiceInterface getAggregateReportingServicePort( java.net.URL portAddress )
    {
        ARService aARService = new ARService( portAddress );

        return aARService.getAggregateReportingServicePort();
    }


    public void setAggregateReportingServicePortEndpointAddress( java.lang.String address )
    {
        AggregateReportingServicePort_address = address;
    }


    public javax.xml.namespace.QName getServiceName( )
    {
        return new javax.xml.namespace.QName( "http://cds.med.DNS   /", "ARService" );
    }


    /**
    * Set the endpoint address for the specified port name.
     * @throws RemoteException 
    */
    public void setEndpointAddress( java.lang.String portName, java.lang.String address ) throws RemoteException
    {

        if ( "AggregateReportingServicePort".equals( portName ) )
        {
            setAggregateReportingServicePortEndpointAddress( address );
        }
        else
        { // Unknown Port Name
            throw new RemoteException( " Cannot set Endpoint Address for Unknown Port" + portName );
        }
    }


    /**
    * Set the endpoint address for the specified port name.
    */
    public void setEndpointAddress( javax.xml.namespace.QName portName, java.lang.String address )
        throws RemoteException
    {
        setEndpointAddress( portName.getLocalPart(), address );
    }

}
