|
|
@ -63,7 +63,9 @@ public class Requestor {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
init();
|
|
|
|
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<String> hresp = webClient.post(req -> req
|
|
|
|
HttpResponse<String> hresp = webClient.post(req -> req
|
|
|
|
.uri(InterfaceConfig.remote().getUrl(intfInfo.type()))
|
|
|
|
.uri(InterfaceConfig.remote().getUrl(intfInfo.type()))
|
|
|
|
|
|
|
|
|
|
|
@ -77,7 +79,7 @@ public class Requestor {
|
|
|
|
.header("SRC_ORG_CD", src.substring(0, 7))
|
|
|
|
.header("SRC_ORG_CD", src.substring(0, 7))
|
|
|
|
.header("SRC_SYS_CD", src.substring(7))
|
|
|
|
.header("SRC_SYS_CD", src.substring(7))
|
|
|
|
|
|
|
|
|
|
|
|
.bodyData(intfInfo.getSourceMessage())
|
|
|
|
.bodyData(sourceMessage)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
String body = hresp.body();
|
|
|
|
String body = hresp.body();
|
|
|
|
Log.get(Requestor.class).debug("targetMessage:\n{}", body);
|
|
|
|
Log.get(Requestor.class).debug("targetMessage:\n{}", body);
|
|
|
|