diff --git a/src/main/java/com/icomsys/MessagingConnector.java b/src/main/java/com/icomsys/MessagingConnector.java index c2f509e..a4293a3 100644 --- a/src/main/java/com/icomsys/MessagingConnector.java +++ b/src/main/java/com/icomsys/MessagingConnector.java @@ -77,8 +77,10 @@ public class MessagingConnector { try { ObjectMapper objectMapper = new ObjectMapper(); Map body = prepareRequestBody(messageSendRequest, objectMapper); + System.out.println("body : " + body); String jsonBody = objectMapper.writeValueAsString(body); + System.out.println("jsonbody : " + jsonBody); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(url)) @@ -88,6 +90,9 @@ public class MessagingConnector { .build(); HttpResponse response = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); + System.out.println("responseCode : " + response.statusCode()); + System.out.println("responseBody : " + response.body()); + System.out.println("responseFull : " + response); if (response.statusCode() == 200) { sejongMessageSendResponse = objectMapper.readValue(response.body(), SejongMessageSendResponse.class);