fixes bug 7755 - Alteração para deixar URL do Web Service configurada em banco
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@58282 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2dfc41b61e
commit
bc6e33b390
|
@ -1,9 +1,9 @@
|
||||||
|
|
||||||
package com.rjconsultores.hstcajservice.ws;
|
package com.rjconsultores.hstcajservice.ws;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import javax.xml.namespace.QName;
|
import javax.xml.namespace.QName;
|
||||||
import javax.xml.ws.Service;
|
import javax.xml.ws.Service;
|
||||||
import javax.xml.ws.WebEndpoint;
|
import javax.xml.ws.WebEndpoint;
|
||||||
|
@ -22,30 +22,14 @@ public class BilheteServiceService
|
||||||
extends Service
|
extends Service
|
||||||
{
|
{
|
||||||
|
|
||||||
private final static URL BILHETESERVICESERVICE_WSDL_LOCATION;
|
|
||||||
private final static Logger logger = Logger.getLogger(com.rjconsultores.hstcajservice.ws.BilheteServiceService.class.getName());
|
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) {
|
public BilheteServiceService(URL wsdlLocation, QName serviceName) {
|
||||||
super(wsdlLocation, serviceName);
|
super(wsdlLocation, serviceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BilheteServiceService() {
|
|
||||||
super(BILHETESERVICESERVICE_WSDL_LOCATION, new QName("http://ws.hstcajservice.rjconsultores.com/", "BilheteServiceService"));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
|
|
Loading…
Reference in New Issue