package ec.gov.sri.wsconsultacontribuyente;

import com.fp.webservices.snap.recursos.MsgSnap;
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;

@WebServiceClient(name = "WebServiceContribuyenteService", targetNamespace = "http://sri.gov.ec/wsConsultaContribuyente", wsdlLocation = "https://bsg.gob.ec/sw/SRI/BSGSW01_Consultar_RucSRI?wsdl")
public class WebServiceContribuyenteService
        extends Service {

    private static final URL WEBSERVICECONTRIBUYENTESERVICE_WSDL_LOCATION;
    private static final WebServiceException WEBSERVICECONTRIBUYENTESERVICE_EXCEPTION;
    private static final QName WEBSERVICECONTRIBUYENTESERVICE_QNAME = new QName("http://sri.gov.ec/wsConsultaContribuyente", "WebServiceContribuyenteService");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
            url = new URL(MsgSnap.getString("url_consulta_ruc"));
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        WEBSERVICECONTRIBUYENTESERVICE_WSDL_LOCATION = url;
        WEBSERVICECONTRIBUYENTESERVICE_EXCEPTION = e;
    }

    public WebServiceContribuyenteService() {
        super(__getWsdlLocation(), WEBSERVICECONTRIBUYENTESERVICE_QNAME);
    }

    public WebServiceContribuyenteService(WebServiceFeature... features) {
        super(__getWsdlLocation(), WEBSERVICECONTRIBUYENTESERVICE_QNAME, features);
    }

    public WebServiceContribuyenteService(URL wsdlLocation) {
        super(wsdlLocation, WEBSERVICECONTRIBUYENTESERVICE_QNAME);
    }

    public WebServiceContribuyenteService(URL wsdlLocation, WebServiceFeature... features) {
        super(wsdlLocation, WEBSERVICECONTRIBUYENTESERVICE_QNAME, features);
    }

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

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

    @WebEndpoint(name = "wsConsultaContribuyentePort")
    public WsConsultaContribuyente getWsConsultaContribuyentePort() {
        return (WsConsultaContribuyente) getPort(new QName("http://sri.gov.ec/wsConsultaContribuyente", "wsConsultaContribuyentePort"), WsConsultaContribuyente.class);
    }

    @WebEndpoint(name = "wsConsultaContribuyentePort")
    public WsConsultaContribuyente getWsConsultaContribuyentePort(WebServiceFeature... features) {
        return (WsConsultaContribuyente) getPort(new QName("http://sri.gov.ec/wsConsultaContribuyente", "wsConsultaContribuyentePort"), WsConsultaContribuyente.class, features);
    }

    private static URL __getWsdlLocation() {
        if (WEBSERVICECONTRIBUYENTESERVICE_EXCEPTION != null) {
            throw WEBSERVICECONTRIBUYENTESERVICE_EXCEPTION;
        }
        return WEBSERVICECONTRIBUYENTESERVICE_WSDL_LOCATION;
    }
}


/* Location:              /data/COMACO/SINCOAR2022/Entorno/produccion/servers/mule-standalone-3.5.0/apps/centralwebservices-2.1.zip!/centralwebservices-2.1/classes/ec/gov/sri/wsconsultacontribuyente/WebServiceContribuyenteService.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */
