fixes bug #7975
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@60923 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5a42085280
commit
60c232f973
|
@ -120,15 +120,15 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
|||
respEx = new IntegracionException(Atributos.MSG_ERRO_GENERICA + e.getMessage());
|
||||
}
|
||||
}
|
||||
entidad = puntoVentaDAO.suscribir(entidad);
|
||||
|
||||
if (respEx != null) {
|
||||
if (respEx instanceof IntegracionException) {
|
||||
throw (IntegracionException) respEx;
|
||||
} else if (respEx instanceof ValidacionCampoException) {
|
||||
if (respEx instanceof ValidacionCampoException) {
|
||||
throw (ValidacionCampoException) respEx;
|
||||
} else if (respEx instanceof IntegracionException) {
|
||||
entidad = puntoVentaDAO.suscribir(entidad);
|
||||
throw (IntegracionException) respEx;
|
||||
}
|
||||
}
|
||||
entidad = puntoVentaDAO.suscribir(entidad);
|
||||
|
||||
return entidad;
|
||||
}
|
||||
|
@ -492,8 +492,10 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
|||
*
|
||||
* link artigo:http://stackoverflow.com/questions/9710185/how-to-deal-with-invalid-characters-in-a-ws-output-when-using-cxf
|
||||
*
|
||||
* @param text The String to clean
|
||||
* @param replacement The string to be substituted for each match
|
||||
* @param text
|
||||
* The String to clean
|
||||
* @param replacement
|
||||
* The string to be substituted for each match
|
||||
* @return The resulting String
|
||||
*/
|
||||
private String removerCaracteresInvalidosXml(String s) {
|
||||
|
|
Loading…
Reference in New Issue