Totvs - WS Fornecedor / WS Cliente / WS Pedido Compra (bug #6127)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@42521 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
644670abb2
commit
144bb97027
|
@ -206,21 +206,31 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
String entid = "";
|
String entid = "";
|
||||||
String fator = "";
|
String fator = "";
|
||||||
|
|
||||||
|
Exception respEx = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
log.info(" ------------- INICIO INTEGRACION FORNECEDOR TOTVS ------------- ");
|
||||||
|
|
||||||
TotvsService.cadastrarFornecedor(endpointFornecedor, nomeEmpresa, nomeFilial, bairro, cep,
|
TotvsService.cadastrarFornecedor(endpointFornecedor, nomeEmpresa, nomeFilial, bairro, cep,
|
||||||
cgc, cnae, codmun, codpais, complemen, conta, ddd, email, endereco, est, inscr,
|
cgc, cnae, codmun, codpais, complemen, conta, ddd, email, endereco, est, inscr,
|
||||||
inscrm, naturez, nome, nreduz, simpnac, tel, tipo, tpessoa);
|
inscrm, naturez, nome, nreduz, simpnac, tel, tipo, tpessoa);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("", e);
|
log.error("", e);
|
||||||
throw new IntegracionException("integracion.totvs");
|
respEx = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
log.info(" ------------- INICIO INTEGRACION CLIENTE TOTVS ------------- ");
|
||||||
|
|
||||||
TotvsService.cadastrarCliente(endpointCliente, bairro, cep, cgc, codmun, codpais, complemen, conta,
|
TotvsService.cadastrarCliente(endpointCliente, bairro, cep, cgc, codmun, codpais, complemen, conta,
|
||||||
contrib, ddd, email, nomeEmpresa, endereco, entid, fator, fax, inscr, inscrm, naturez, nome,
|
contrib, ddd, email, nomeEmpresa, endereco, entid, fator, fax, inscr, inscrm, naturez, nome,
|
||||||
nreduz, obs, pais, tpessoa, tel, tipo, est);
|
nreduz, obs, pais, tpessoa, tel, tipo, est);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("", e);
|
log.error("", e);
|
||||||
|
respEx = e;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (respEx != null) {
|
||||||
throw new IntegracionException("integracion.totvs");
|
throw new IntegracionException("integracion.totvs");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue