package com.jboss.jbosstm.xts.demo.theatre;

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


/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.1.2-hudson-182-RC1
 * Generated source version: 2.0
 * 
 */
@WebServiceClient(name = "TheatreServiceBAService", targetNamespace = "http://www.jboss.com/jbosstm/xts/demo/Theatre", wsdlLocation = "/WEB-INF/wsdl/TheatreServiceBA.wsdl")
public class TheatreServiceBAService
    extends Service
{

    private final static URL THEATRESERVICEBASERVICE_WSDL_LOCATION;
    private final static Logger logger = Logger.getLogger(com.jboss.jbosstm.xts.demo.theatre.TheatreServiceBAService.class.getName());

    static {
        URL url = null;
        try {
            URL baseUrl;
            baseUrl = com.jboss.jbosstm.xts.demo.theatre.TheatreServiceBAService.class.getResource(".");
            url = new URL(baseUrl, "/WEB-INF/wsdl/TheatreServiceBA.wsdl");
        } catch (MalformedURLException e) {
            logger.warning("Failed to create URL for the wsdl Location: '/WEB-INF/wsdl/TheatreServiceBA.wsdl', retrying as a local file");
            logger.warning(e.getMessage());
        }
        THEATRESERVICEBASERVICE_WSDL_LOCATION = url;
    }

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

    public TheatreServiceBAService() {
        super(THEATRESERVICEBASERVICE_WSDL_LOCATION, new QName("http://www.jboss.com/jbosstm/xts/demo/Theatre", "TheatreServiceBAService"));
    }

    /**
     * 
     * @return
     *     returns ITheatreServiceBA
     */
    @WebEndpoint(name = "TheatreServiceBA")
    public ITheatreServiceBA getTheatreServiceBA() {
        return super.getPort(new QName("http://www.jboss.com/jbosstm/xts/demo/Theatre", "TheatreServiceBA"), ITheatreServiceBA.class);
    }

}