diff options
author | Matthieu Geerebaert <matthieu.geerebaert@orange.com> | 2018-04-24 12:09:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-24 12:09:01 +0000 |
commit | ab226f19a0cc30f710fd026b8b4c2eb08d1aeb6b (patch) | |
tree | 930fb69afed534a85f02a50a9f01b695c03d9d18 /src/main/java/org | |
parent | a5402bc0ce78da726f2551c014e3cc49637655d0 (diff) | |
parent | ae93e5aaabc777a3d7d01b3437ca6fdc0f572a01 (diff) |
Merge "Invalid SO payload"
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/onap/nbi/apis/serviceorder/SoClient.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/SoClient.java b/src/main/java/org/onap/nbi/apis/serviceorder/SoClient.java index 5f10d63..ef4d8c3 100644 --- a/src/main/java/org/onap/nbi/apis/serviceorder/SoClient.java +++ b/src/main/java/org/onap/nbi/apis/serviceorder/SoClient.java @@ -61,11 +61,9 @@ public class SoClient { String url = soHostname + OnapComponentsUrlPaths.MSO_CREATE_SERVICE_INSTANCE_PATH; - HttpEntity<MSOPayload> requestDetailEntity = new HttpEntity<>(msoPayload, buildRequestHeader()); - try { ResponseEntity<CreateServiceInstanceResponse> response = restTemplate.exchange(url, HttpMethod.POST, - new HttpEntity<>(requestDetailEntity, buildRequestHeader()), CreateServiceInstanceResponse.class); + new HttpEntity<>(msoPayload, buildRequestHeader()), CreateServiceInstanceResponse.class); logResponsePost(url, response); return response; @@ -85,11 +83,9 @@ public class SoClient { String url = soHostname + OnapComponentsUrlPaths.MSO_DELETE_REQUEST_STATUS_PATH + serviceId; - HttpEntity<MSOPayload> requestDetailEntity = new HttpEntity<>(msoPayload, buildRequestHeader()); - try { ResponseEntity<CreateServiceInstanceResponse> response = restTemplate.exchange(url, HttpMethod.DELETE, - new HttpEntity<>(requestDetailEntity, buildRequestHeader()), CreateServiceInstanceResponse.class); + new HttpEntity<>(msoPayload, buildRequestHeader()), CreateServiceInstanceResponse.class); logResponsePost(url, response); return response; |