diff --git a/src/com/rjconsultores/hstcajservice/ws/BilheteServiceService.java b/src/com/rjconsultores/hstcajservice/ws/BilheteServiceService.java index 7307fe360..94eedf540 100644 --- a/src/com/rjconsultores/hstcajservice/ws/BilheteServiceService.java +++ b/src/com/rjconsultores/hstcajservice/ws/BilheteServiceService.java @@ -1,9 +1,9 @@ package com.rjconsultores.hstcajservice.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; @@ -22,30 +22,14 @@ public class BilheteServiceService extends Service { - private final static URL BILHETESERVICESERVICE_WSDL_LOCATION; + private final static Logger logger = Logger.getLogger(com.rjconsultores.hstcajservice.ws.BilheteServiceService.class.getName()); - static { - URL url = null; - try { - URL baseUrl; - baseUrl = com.rjconsultores.hstcajservice.ws.BilheteServiceService.class.getResource("."); - url = new URL(baseUrl, "http://52.72.4.158:8280/WSIntegracao/BilheteService?wsdl"); - } catch (MalformedURLException e) { - logger.warning("Failed to create URL for the wsdl Location: 'http://52.72.4.158:8280/WSIntegracao/BilheteService?wsdl', retrying as a local file"); - logger.warning(e.getMessage()); - } - BILHETESERVICESERVICE_WSDL_LOCATION = url; - } public BilheteServiceService(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } - public BilheteServiceService() { - super(BILHETESERVICESERVICE_WSDL_LOCATION, new QName("http://ws.hstcajservice.rjconsultores.com/", "BilheteServiceService")); - } - /** * * @return