From bc6e33b3907eb176b8c4870460703c4297c181ae Mon Sep 17 00:00:00 2001 From: "igor.rodrigo" Date: Tue, 26 Jul 2016 17:20:32 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug=207755=20-=20Altera=C3=A7=C3=A3o=20?= =?UTF-8?q?para=20deixar=20URL=20do=20Web=20Service=20configurada=20em=20b?= =?UTF-8?q?anco?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@58282 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ws/BilheteServiceService.java | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) 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