|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|