From 69770f8a4aa3932b1b9f124414a9de93ac5aed32 Mon Sep 17 00:00:00 2001 From: leonardo Date: Tue, 13 Dec 2016 17:01:03 +0000 Subject: [PATCH] bug #7788 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@63606 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/PuntoVentaServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index dcdd24b76..c90119a9c 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -57,6 +57,8 @@ import com.rjconsultores.ws.utileria.Atributos.TipoFornecedor; import com.rjconsultores.ws.utileria.Atributos.TipoPessoa; import com.rjconsultores.ws.utileria.RetornoTotvs; import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno; +import com.rjconsultores.wsag.Constantes; +import com.rjconsultores.wsag.dao.DaoAG; /** * @@ -154,7 +156,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { if (ApplicationProperties.getInstance().integracionAGWS()) { try{ IAGservice service = new IAGserviceLocator(); - IAG iag = service.getIAGPort(new URL("http://localhost:8089/cgi-bin/AGWS.exe/soap/IAG")); + IAG iag = service.getIAGPort(new URL(DaoAG.getInstance().obterConstante(Constantes.URL_WS_AG))); TFornecedor fornecedor = null; try{ fornecedor = iag.getObjetoFornecedorPorCNPJCPF(entidad.getNumDoCPuntoVenta()); @@ -221,7 +223,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { if (ApplicationProperties.getInstance().integracionAGWS()) { try{ IAGservice service = new IAGserviceLocator(); - IAG iag = service.getIAGPort(new URL("http://localhost:8089/cgi-bin/AGWS.exe/soap/IAG")); + IAG iag = service.getIAGPort(new URL(DaoAG.getInstance().obterConstante(Constantes.URL_WS_AG))); TCliente cli = null; try{ cli = iag.getObjetoClienteCPFCNPJ(entidad.getNumDoCPuntoVenta());