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

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 = "documentoWebService", targetNamespace = "http://com.ejie.aa19b.webservice", wsdlLocation = "META-INF/wsdls/documentoWebService.wsdl")
public class DocumentoWebService extends Service {

	private final static URL DOCUMENTOWEBSERVICE_WSDL_LOCATION;
	private final static Logger logger = Logger.getLogger(
			com.ejie.ab04b.webservice.client.documentowebservice.DocumentoWebService.class
					.getName());

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

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

	/**
	 * Constructor.
	 */
	public DocumentoWebService() {
		super(DOCUMENTOWEBSERVICE_WSDL_LOCATION, new QName(
				"http://com.ejie.aa19b.webservice", "documentoWebService"));
	}

	/**
	 * Gets the documento web service port.
	 *
	 * @return returns DocumentoWebServiceImpl
	 */
	@WebEndpoint(name = "documentoWebServicePort")
	public DocumentoWebServiceImpl getDocumentoWebServicePort() {
		return super.getPort(
				new QName("http://com.ejie.aa19b.webservice",
						"documentoWebServicePort"),
				DocumentoWebServiceImpl.class);
	}

	/**
	 * Gets the documento web service 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 DocumentoWebServiceImpl
	 */
	@WebEndpoint(name = "documentoWebServicePort")
	public DocumentoWebServiceImpl getDocumentoWebServicePort(
			WebServiceFeature... features) {
		return super.getPort(
				new QName("http://com.ejie.aa19b.webservice",
						"documentoWebServicePort"),
				DocumentoWebServiceImpl.class, features);
	}

}
