package org.jboss.as.test.integration.ws.wsrm.generated;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import jakarta.xml.ws.WebEndpoint;
import jakarta.xml.ws.WebServiceClient;
import jakarta.xml.ws.WebServiceFeature;
import jakarta.xml.ws.Service;

/**
 * This class was generated by Apache CXF 2.4.6
 * 2012-02-16T17:56:55.263+01:00
 * Generated source version: 2.4.6
 */
@WebServiceClient(name = "ReliableService",
        wsdlLocation = "file:/home/rsvoboda/git/jboss-as/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ws/wsrm/ReliableService.wsdl",
        targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
public class ReliableService_Service extends Service {

    public static final URL WSDL_LOCATION;

    public static QName SERVICE = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "ReliableService");
    public static final QName ReliableServicePort = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "ReliableServicePort");

    static {
        URL url = null;
        try {
            url = new URL("file:/home/rsvoboda/git/jboss-as/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ws/wsrm/ReliableService.wsdl");
        } catch (MalformedURLException e) {
            java.util.logging.Logger.getLogger(ReliableService_Service.class.getName())
                    .log(java.util.logging.Level.INFO,
                            "Can not initialize the default wsdl from {0}", "file:/home/rsvoboda/git/jboss-as/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ws/wsrm/ReliableService.wsdl");
        }
        WSDL_LOCATION = url;
    }

    public ReliableService_Service(URL wsdlLocation) {
        super(wsdlLocation, SERVICE);
    }

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

    public ReliableService_Service() {
        super(WSDL_LOCATION, SERVICE);
    }

//    //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//    //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//    //compliant code instead.
//    public ReliableService_Service(WebServiceFeature ... features) {
//        super(WSDL_LOCATION, SERVICE, features);
//    }
//
//    //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//    //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//    //compliant code instead.
//    public ReliableService_Service(URL wsdlLocation, WebServiceFeature ... features) {
//        super(wsdlLocation, SERVICE, features);
//    }
//
//    //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//    //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//    //compliant code instead.
//    public ReliableService_Service(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
//        super(wsdlLocation, serviceName, features);
//    }

    /**
     * @return returns ReliableService
     */
    @WebEndpoint(name = "ReliableServicePort")
    public ReliableService getReliableServicePort() {
        return super.getPort(ReliableServicePort, ReliableService.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 ReliableService
     */
    @WebEndpoint(name = "ReliableServicePort")
    public ReliableService getReliableServicePort(WebServiceFeature... features) {
        return super.getPort(ReliableServicePort, ReliableService.class, features);
    }

}
