
package gov.va.med.esr.client.ws;

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


/**
 * This class was generated by the JAX-WS RI.
 * Oracle JAX-WS 2.1.4
 * Generated source version: 2.1
 * 
 */
@WebServiceClient(name = "ComplexService2", targetNamespace = "http://esr.med.DNS   /", wsdlLocation = "http://localhost:7001/ComplexImpl2/ComplexService2?WSDL")
public class ComplexService2
    extends Service
{

    private final static URL COMPLEXSERVICE2_WSDL_LOCATION;
    private final static Logger logger = Logger.getLogger(gov.va.med.esr.client.ws.ComplexService2 .class.getName());

    static {
        URL url = null;
        try {
            URL baseUrl;
            baseUrl = gov.va.med.esr.client.ws.ComplexService2 .class.getResource(".");
            url = new URL(baseUrl, "http://localhost:7001/ComplexImpl2/ComplexService2?WSDL");
        } catch (MalformedURLException e) {
            logger.warning("Failed to create URL for the wsdl Location: 'http://localhost:7001/ComplexImpl2/ComplexService2?WSDL', retrying as a local file");
            logger.warning(e.getMessage());
        }
        COMPLEXSERVICE2_WSDL_LOCATION = url;
    }

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

    public ComplexService2() {
        super(COMPLEXSERVICE2_WSDL_LOCATION, new QName("http://esr.med.DNS   /", "ComplexService2"));
    }

    /**
     * 
     * @return
     *     returns ComplexPortType2
     */
    @WebEndpoint(name = "ComplexPortType2Port")
    public ComplexPortType2 getComplexPortType2Port() {
        return super.getPort(new QName("http://esr.med.DNS   /", "ComplexPortType2Port"), ComplexPortType2.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 ComplexPortType2
     */
    @WebEndpoint(name = "ComplexPortType2Port")
    public ComplexPortType2 getComplexPortType2Port(WebServiceFeature... features) {
        return super.getPort(new QName("http://esr.med.DNS   /", "ComplexPortType2Port"), ComplexPortType2.class, features);
    }

}
