package ru.bitel.bgbilling.modules.tv.dyn.seventhsky.ipb;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.1.6
 * Generated source version: 2.1
 * 
 */
@WebServiceClient(name = "IPBService", targetNamespace = "http://www.iskratelecom.ru/IPB/", wsdlLocation = "file:/mnt/share/public/Integrate%20Partner%20Billing/IPB/IPB.wsdl")
public class IPBService
    extends Service
{
    private final static URL IPBSERVICE_WSDL_LOCATION;
    private final static Logger logger = LogManager.getLogger();

    static {
        URL url = null;
        try
        {
            URL baseUrl;
            baseUrl = ru.bitel.bgbilling.modules.tv.dyn.seventhsky.ipb.IPBService.class.getResource( "." );
            url = new URL( baseUrl, "file:/mnt/share/public/Integrate%20Partner%20Billing/IPB/IPB.wsdl" );
        }
        catch( MalformedURLException e )
        {
            logger.warn( "Failed to create URL for the wsdl Location: 'file:/mnt/share/public/Integrate%20Partner%20Billing/IPB/IPB.wsdl', retrying as a local file" );
            logger.warn( e.getMessage() );
        }
        IPBSERVICE_WSDL_LOCATION = url;
    }

    public IPBService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public IPBService() {
        super(IPBSERVICE_WSDL_LOCATION, new QName("http://www.iskratelecom.ru/IPB/", "IPBService"));
    }

    /**
     * 
     * @return
     *     returns IPB
     */
    @WebEndpoint(name = "IPBPort")
    public IPB getIPBPort() {
        return super.getPort(new QName("http://www.iskratelecom.ru/IPB/", "IPBPort"), IPB.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns IPB
     */
    @WebEndpoint(name = "IPBPort")
    public IPB getIPBPort(WebServiceFeature... features) {
        return super.getPort(new QName("http://www.iskratelecom.ru/IPB/", "IPBPort"), IPB.class, features);
    }

}
