From b35c48d3d2cc3a7e4f6bfd72b4d5dc66d785509e Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 13 Nov 2023 11:26:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=91=EB=8B=B5=20=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=20=EB=A1=9C=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/interfaces/lntris/Requestor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/lntris/Requestor.java b/src/main/java/cokr/xit/interfaces/lntris/Requestor.java index 693fc66..bcfb2dc 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/Requestor.java +++ b/src/main/java/cokr/xit/interfaces/lntris/Requestor.java @@ -74,19 +74,19 @@ public class Requestor { .header("IF_ID", intfInfo.interfaceID()) .header("SRC_ORG_CD", src.substring(0, 7)) - .header("SRC_SYS_CD", src.substring(8)) + .header("SRC_SYS_CD", src.substring(7)) .bodyData(intfInfo.getSourceMessage()) ); + String body = hresp.body(); + Log.get(Requestor.class).debug("targetMessage:\n{}", body); if (WebClient.Request.SUCCESS != hresp.statusCode()) throw new RuntimeException(intfInfo.interfaceID() + ": " + hresp.statusCode()); - Log.get(Requestor.class).debug("targetMessage:\n{}", hresp.body()); - intfInfo .json(json) - .parseTargetMessage(hresp.body()); + .parseTargetMessage(body); } catch (Exception e) { throw Assert.runtimeException(e); }