package com.fp.frontend.webservices.snap.ruc;

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.WebServiceException;
import javax.xml.ws.WebServiceFeature;

import com.fp.frontend.utility.MsgControlArmas;

/**
 * This class was generated by the JAX-WS RI. JAX-WS RI 2.2.6b21 Generated
 * source version: 2.2
 *
 */
@WebServiceClient(name = "RucServicioService", targetNamespace = "http://ruc.snap.webservices.fp.com/", wsdlLocation = "https://serviciosarmas.ccffaa.mil.ec:8085/serviceRUC?wsdl")
public class RucServicioService
        extends Service {

    private final static URL RUCSERVICIOSERVICE_WSDL_LOCATION;
    private final static WebServiceException RUCSERVICIOSERVICE_EXCEPTION;
    private final static QName RUCSERVICIOSERVICE_QNAME = new QName("http://ruc.snap.webservices.fp.com/", "RucServicioService");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
            url = new URL(MsgControlArmas.getProperty("url_snap_servicio_ruc"));
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        RUCSERVICIOSERVICE_WSDL_LOCATION = url;
        RUCSERVICIOSERVICE_EXCEPTION = e;
    }

    public RucServicioService() {
        super(__getWsdlLocation(), RUCSERVICIOSERVICE_QNAME);
    }

    public RucServicioService(WebServiceFeature... features) {
        super(__getWsdlLocation(), RUCSERVICIOSERVICE_QNAME, features);
    }

    public RucServicioService(URL wsdlLocation) {
        super(wsdlLocation, RUCSERVICIOSERVICE_QNAME);
    }

    public RucServicioService(URL wsdlLocation, WebServiceFeature... features) {
        super(wsdlLocation, RUCSERVICIOSERVICE_QNAME, features);
    }

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

    public RucServicioService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
        super(wsdlLocation, serviceName, features);
    }

    /**
     *
     * @return returns RucServicio
     */
    @WebEndpoint(name = "RucServicioPort")
    public RucServicio getRucServicioPort() {
        return super.getPort(new QName("http://ruc.snap.webservices.fp.com/", "RucServicioPort"), RucServicio.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 RucServicio
     */
    @WebEndpoint(name = "RucServicioPort")
    public RucServicio getRucServicioPort(WebServiceFeature... features) {
        return super.getPort(new QName("http://ruc.snap.webservices.fp.com/", "RucServicioPort"), RucServicio.class, features);
    }

    private static URL __getWsdlLocation() {
        if (RUCSERVICIOSERVICE_EXCEPTION != null) {
            throw RUCSERVICIOSERVICE_EXCEPTION;
        }
        return RUCSERVICIOSERVICE_WSDL_LOCATION;
    }

}
