Bom dia all,
Estou com um pequeno problema no B2B dinâmico. Já verifiquei esse post
O problema que está aparecendo na sxi_monitor é:
Tem um código java nesse envio dinâmico:
A variavel email é iniciada com (null), descendo código você pode verificar que ela recebe um valor, por algum motivo continua nulo.
A função já foi testada no ECC e está retornando o e-mail.
Channel channel = null;
RfcAccessor accessor = null;
String email = null;
try {
// Retreive the communication channel
channel = LookupService.getChannel(busSystem, commChannel);
// Get a RFC accessor for the channel
accessor = LookupService.getRfcAccessor(channel);
// Define the RFC Request Message
String req = "";
// Create the xml inputstream
InputStream inputStream = new ByteArrayInputStream(req.getBytes("UTF-8"));
// Create xml payload
XmlPayload payload = LookupService.getXmlPayload(inputStream);
// Execute lookup
XmlPayload result = accessor.call(payload);
// Get the response
InputStream resp = result.getContent();
// Parse the response
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(resp);
Node node = (Node) doc.getElementsByTagName("e_mail").item(0);
if (node.hasChildNodes() && !node.getFirstChild().getNodeValue().equals("")){
email = node.getFirstChild().getNodeValue();
}
} catch (Exception e) {
trace.addWarning("RFC Lookup Failed: " + e);
} finally {
// Close the accessor in order to free resources.
if (accessor!=null) {
try {
accessor.close();
} catch (Exception e) {
trace.addWarning("Error while closing accessor: " + e);
}
}
}
return email;
Alguem já passou por essa situação ? Tem alguma luz ?
Atenciosamente,
Ricardo