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());