
package com.ejie.ad74a.ws.client.prestadorWS;

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

import org.springframework.beans.factory.annotation.Value;

import com.ejie.ad74a.constantes.Constantes;

/**
 * OSB Service
 * 
 * This class was generated by the JAX-WS RI. JAX-WS RI 2.3.2 Generated source
 * version: 2.0
 * 
 */
@WebServiceClient(name = "middlewareWS", targetNamespace = "http://com.ejie.middleware.webservice", wsdlLocation = "http://svc.intra.integracion.jakina.ejiedes.net/ctxapp/ad74aPrestadorWS?WSDL")
public class MiddlewareWS extends Service {

	private final static URL MIDDLEWAREWS_WSDL_LOCATION;
	private final static WebServiceException MIDDLEWAREWS_EXCEPTION;
	private final static QName MIDDLEWAREWS_QNAME = new QName("http://com.ejie.middleware.webservice", "middlewareWS");
	@Value("${" + Constantes.RUTA_WSDL_INTER_X87B + "}")
	private static String x87bRutaWSDL;
	static {
		URL url = null;
		WebServiceException e = null;
		try {
//        	url = new URL("http://svc.intra.integracion.jakina.ejiedes.net/ctxapp/ad74aPrestadorWS?WSDL");
			url = new URL(x87bRutaWSDL);
		} catch (MalformedURLException ex) {
			e = new WebServiceException(ex);
		}
		MIDDLEWAREWS_WSDL_LOCATION = url;
		MIDDLEWAREWS_EXCEPTION = e;
	}

	public MiddlewareWS() {
		super(__getWsdlLocation(), MIDDLEWAREWS_QNAME);
	}

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

	/**
	 * 
	 * @return returns MiddlewareWebService
	 */
	@WebEndpoint(name = "middlewareWSPort")
	public MiddlewareWebService getMiddlewareWSPort() {
		return super.getPort(new QName("http://com.ejie.middleware.webservice", "middlewareWSPort"),
				MiddlewareWebService.class);
	}

	private static URL __getWsdlLocation() {
		if (MIDDLEWAREWS_EXCEPTION != null) {
			throw MIDDLEWAREWS_EXCEPTION;
		}
		return MIDDLEWAREWS_WSDL_LOCATION;
	}

}
