diff --git a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java index 0f076cf..595e8c3 100644 --- a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java +++ b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java @@ -980,9 +980,9 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp if (eaiBody instanceof JSONObject) { JSONObject jsonObject = (JSONObject) eaiBody; - if( jsonObject.containsKey("KJB_ROOTLESS_ARRAY") ) { + if( jsonObject.containsKey("kjbrootlessarray") ) { ContentType contentTypeObj = ContentType.create(contentType, charset); - JSONArray array = (JSONArray) jsonObject.get("KJB_ROOTLESS_ARRAY"); + JSONArray array = (JSONArray) jsonObject.get("kjbrootlessarray"); StringEntity entity = new StringEntity(array.toJSONString(), contentTypeObj); method.setEntity(entity); return; @@ -1507,7 +1507,7 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp } else if (obj instanceof JSONArray) { // 배열일 경우 새로운 객체로 감싸서 반환 JSONObject wrapper = new JSONObject(); - wrapper.put("KJB_ROOTLESS_ARRAY", obj); + wrapper.put("kjbrootlessarray", obj); return wrapper; } diff --git a/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceStandard.java b/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceStandard.java index f50d367..ec008c4 100644 --- a/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceStandard.java +++ b/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceStandard.java @@ -189,7 +189,7 @@ public class HttpAdapterServiceStandard extends HttpAdapterServiceSupport Object root = JSONValue.parse(body); if( root instanceof JSONArray ) { JSONObject wrappedObject = new JSONObject(); - wrappedObject.put("KJB_ROOTLESS_ARRAY", root); + wrappedObject.put("kjbrootlessarray", root); requestBytes = wrappedObject.toJSONString().getBytes(encode); } @@ -253,7 +253,7 @@ public class HttpAdapterServiceStandard extends HttpAdapterServiceSupport Object root = JSONValue.parse(responseData); if( root instanceof JSONObject ) { JSONObject wrappedObject = (JSONObject) root; - responseData = wrappedObject.get("KJB_ROOTLESS_ARRAY").toString(); + responseData = wrappedObject.get("kjbrootlessarray").toString(); } }catch (Exception e) {