leonardo 2016-12-13 17:01:03 +00:00
parent d5570057f3
commit 69770f8a4a
1 changed files with 4 additions and 2 deletions

View File

@ -57,6 +57,8 @@ import com.rjconsultores.ws.utileria.Atributos.TipoFornecedor;
import com.rjconsultores.ws.utileria.Atributos.TipoPessoa; import com.rjconsultores.ws.utileria.Atributos.TipoPessoa;
import com.rjconsultores.ws.utileria.RetornoTotvs; import com.rjconsultores.ws.utileria.RetornoTotvs;
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno; 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()) { if (ApplicationProperties.getInstance().integracionAGWS()) {
try{ try{
IAGservice service = new IAGserviceLocator(); 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; TFornecedor fornecedor = null;
try{ try{
fornecedor = iag.getObjetoFornecedorPorCNPJCPF(entidad.getNumDoCPuntoVenta()); fornecedor = iag.getObjetoFornecedorPorCNPJCPF(entidad.getNumDoCPuntoVenta());
@ -221,7 +223,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
if (ApplicationProperties.getInstance().integracionAGWS()) { if (ApplicationProperties.getInstance().integracionAGWS()) {
try{ try{
IAGservice service = new IAGserviceLocator(); 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; TCliente cli = null;
try{ try{
cli = iag.getObjetoClienteCPFCNPJ(entidad.getNumDoCPuntoVenta()); cli = iag.getObjetoClienteCPFCNPJ(entidad.getNumDoCPuntoVenta());