package com.ejie.ab04b.webservice.client.aa66;

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.5 Generated
 * source version: 2.1
 * 
 * @author GFI-NORTE
 */
@WebServiceClient(name = "NotificacionesWebServiceImplService", targetNamespace = "http://com.ejie.aa66", wsdlLocation = "META-INF/wsdls/AA66NotificacionCorreos.wsdl")
public class NotificacionesWebServiceImplService extends Service {

	private final static URL NOTIFICACIONESWEBSERVICEIMPLSERVICE_WSDL_LOCATION;
	private final static Logger LOGGER = Logger.getLogger(
			com.ejie.ab04b.webservice.client.aa66.NotificacionesWebServiceImplService.class
					.getName());

	static {
		URL url = null;
		try {
			URL baseUrl;
			baseUrl = com.ejie.ab04b.webservice.client.aa66.NotificacionesWebServiceImplService.class
					.getResource(".");
			url = new URL(baseUrl,
					"META-INF/wsdls/AA66NotificacionCorreos.wsdl");
		} catch (MalformedURLException e) {
			NotificacionesWebServiceImplService.LOGGER.warning(
					"Failed to create URL for the wsdl Location: 'META-INF/wsdls/AA66NotificacionCorreos.wsdl', retrying as a local file");
			NotificacionesWebServiceImplService.LOGGER.warning(e.getMessage());
		}
		NOTIFICACIONESWEBSERVICEIMPLSERVICE_WSDL_LOCATION = url;
	}

	/**
	 * Instantiates a new notificaciones web service impl service.
	 *
	 * @param wsdlLocation            URL
	 * @param serviceName            QName
	 */
	public NotificacionesWebServiceImplService(URL wsdlLocation,
			QName serviceName) {
		super(wsdlLocation, serviceName);
	}

	/**
	 * Constructor.
	 */
	public NotificacionesWebServiceImplService() {
		super(NotificacionesWebServiceImplService.NOTIFICACIONESWEBSERVICEIMPLSERVICE_WSDL_LOCATION,
				new QName("http://com.ejie.aa66",
						"NotificacionesWebServiceImplService"));
	}

	/**
	 * Gets the AA 66 notificaciones port.
	 *
	 * @return returns AA66Notificaciones
	 */
	@WebEndpoint(name = "AA66NotificacionesPort")
	public AA66Notificaciones getAA66NotificacionesPort() {
		return super.getPort(
				new QName("http://com.ejie.aa66", "AA66NotificacionesPort"),
				AA66Notificaciones.class);
	}

	/**
	 * Gets the AA 66 notificaciones port.
	 *
	 * @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 AA66Notificaciones
	 */
	@WebEndpoint(name = "AA66NotificacionesPort")
	public AA66Notificaciones getAA66NotificacionesPort(
			WebServiceFeature... features) {
		return super.getPort(
				new QName("http://com.ejie.aa66", "AA66NotificacionesPort"),
				AA66Notificaciones.class, features);
	}

}
