diff --git a/src/main/java/cokr/xit/interfaces/lntris/Requestor.java b/src/main/java/cokr/xit/interfaces/lntris/Requestor.java index 81151b7..addf759 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/Requestor.java +++ b/src/main/java/cokr/xit/interfaces/lntris/Requestor.java @@ -63,7 +63,9 @@ public class Requestor { try { init(); - String src = intfInfo.getSourceMessage().getHeader().getSource(); + SourceMessage sourceMessage = intfInfo.getSourceMessage(); + Log.get(Requestor.class).debug("sourceMessage:\n{}", json.stringify(sourceMessage)); + String src = sourceMessage.getHeader().getSource(); HttpResponse hresp = webClient.post(req -> req .uri(InterfaceConfig.remote().getUrl(intfInfo.type())) @@ -77,7 +79,7 @@ public class Requestor { .header("SRC_ORG_CD", src.substring(0, 7)) .header("SRC_SYS_CD", src.substring(7)) - .bodyData(intfInfo.getSourceMessage()) + .bodyData(sourceMessage) ); String body = hresp.body(); Log.get(Requestor.class).debug("targetMessage:\n{}", body);