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

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 = "CedulaServicioService", targetNamespace = "http://cedula.snap.webservices.fp.com/", wsdlLocation = "https://serviciosarmas.ccffaa.mil.ec:8085/serviceCedula?wsdl")
public class CedulaServicioService
        extends Service {

    private final static URL CEDULASERVICIOSERVICE_WSDL_LOCATION;
    private final static WebServiceException CEDULASERVICIOSERVICE_EXCEPTION;
    private final static QName CEDULASERVICIOSERVICE_QNAME = new QName("http://cedula.snap.webservices.fp.com/", "CedulaServicioService");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
            url = new URL(MsgControlArmas.getProperty("url_snap_servicio_cedula"));
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        CEDULASERVICIOSERVICE_WSDL_LOCATION = url;
        CEDULASERVICIOSERVICE_EXCEPTION = e;
    }

    public CedulaServicioService() {
        super(__getWsdlLocation(), CEDULASERVICIOSERVICE_QNAME);
    }

    public CedulaServicioService(WebServiceFeature... features) {
        super(__getWsdlLocation(), CEDULASERVICIOSERVICE_QNAME, features);
    }

    public CedulaServicioService(URL wsdlLocation) {
        super(wsdlLocation, CEDULASERVICIOSERVICE_QNAME);
    }

    public CedulaServicioService(URL wsdlLocation, WebServiceFeature... features) {
        super(wsdlLocation, CEDULASERVICIOSERVICE_QNAME, features);
    }

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

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

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

    private static URL __getWsdlLocation() {
        if (CEDULASERVICIOSERVICE_EXCEPTION != null) {
            throw CEDULASERVICIOSERVICE_EXCEPTION;
        }
        return CEDULASERVICIOSERVICE_WSDL_LOCATION;
    }

}
