// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// null

package com.agiledeveloper.ws;

import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.client.ServiceExceptionImpl;
import com.sun.xml.rpc.util.exception.*;
import com.sun.xml.rpc.soap.SOAPVersion;
import com.sun.xml.rpc.client.HandlerChainImpl;
import javax.xml.rpc.*;
import javax.xml.rpc.encoding.*;
import javax.xml.rpc.handler.HandlerChain;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;

public class InformationProvider_Impl extends com.sun.xml.rpc.client.BasicService implements InformationProvider {
    private static final QName serviceName = new QName("http://www.agiledeveloper.com/wsdl/InformationProvider", "InformationProvider");
    private static final QName ns1_InformationProviderIFPort_QNAME = new QName("http://www.agiledeveloper.com/wsdl/InformationProvider", "InformationProviderIFPort");
    private static final Class informationProviderIF_PortClass = com.agiledeveloper.ws.InformationProviderIF.class;
    
    public InformationProvider_Impl() {
        super(serviceName, new QName[] {
                        ns1_InformationProviderIFPort_QNAME
                    },
            new com.agiledeveloper.ws.InformationProvider_SerializerRegistry().getRegistry());
        
    }
    
    public java.rmi.Remote getPort(QName portName, Class serviceDefInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (portName.equals(ns1_InformationProviderIFPort_QNAME) &&
                serviceDefInterface.equals(informationProviderIF_PortClass)) {
                return getInformationProviderIFPort();
            }
        } catch (Exception e) {
            throw new ServiceExceptionImpl(new LocalizableExceptionAdapter(e));
        }
        return super.getPort(portName, serviceDefInterface);
    }
    
    public java.rmi.Remote getPort(Class serviceDefInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (serviceDefInterface.equals(informationProviderIF_PortClass)) {
                return getInformationProviderIFPort();
            }
        } catch (Exception e) {
            throw new ServiceExceptionImpl(new LocalizableExceptionAdapter(e));
        }
        return super.getPort(serviceDefInterface);
    }
    
    public com.agiledeveloper.ws.InformationProviderIF getInformationProviderIFPort() {
        String[] roles = new String[] {};
        HandlerChainImpl handlerChain = new HandlerChainImpl(getHandlerRegistry().getHandlerChain(ns1_InformationProviderIFPort_QNAME));
        handlerChain.setRoles(roles);
        com.agiledeveloper.ws.InformationProviderIF_Stub stub = new com.agiledeveloper.ws.InformationProviderIF_Stub(handlerChain);
        try {
            stub._initialize(super.internalTypeRegistry);
        } catch (JAXRPCException e) {
            throw e;
        } catch (Exception e) {
            throw new JAXRPCException(e.getMessage(), e);
        }
        return stub;
    }
}
