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

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

import javax.xml.namespace.QName;
import jakarta.xml.ws.Service;
import jakarta.xml.ws.WebEndpoint;
import jakarta.xml.ws.WebServiceClient;
import jakarta.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 = URI.create( "file:/mnt/share/public/Integrate%20Partner%20Billing/IPB/IPB.wsdl" ).toURL();
        }
        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 jakarta.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);
    }

}
