diff options
author | Timoney, Dan (dt5972) <dtimoney@att.com> | 2019-10-01 15:14:29 -0400 |
---|---|---|
committer | Timoney, Dan (dt5972) <dtimoney@att.com> | 2019-10-02 14:36:16 -0400 |
commit | 477f27624590d68e6c64b8939dd6b00737ed3736 (patch) | |
tree | 9ca1b70be4af5195b0a9da64426f6c5a8174d1a1 /platform-logic/restapi-templates | |
parent | da08df2acb625b0c318b01f366d8fe1bc8f10cf8 (diff) |
Fixes for async response to SO
1) Wrong user name configured for SO interface
2) Accept header needs to be set to 'text/plain'
3) Content-Type needs to be explicitly set to 'application/json'
4) Template is missing outer "input" tag
5) Message needs to be in XML format, not JSON
Change-Id: Icd06d12ff8576d2dd560ea452d0a14c3de643a00
Issue-ID: SDNC-927
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Former-commit-id: 74ad4c7e51bbfa01caa2e504779b47dd86861428
Diffstat (limited to 'platform-logic/restapi-templates')
-rw-r--r-- | platform-logic/restapi-templates/src/main/json/so-response.json | 2 | ||||
-rw-r--r-- | platform-logic/restapi-templates/src/main/xml/so-response.xml | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/so-response.json b/platform-logic/restapi-templates/src/main/json/so-response.json index 2e47fb0f..33d54c80 100644 --- a/platform-logic/restapi-templates/src/main/json/so-response.json +++ b/platform-logic/restapi-templates/src/main/json/so-response.json @@ -1,4 +1,5 @@ { + "input" : { "service-information": { "service-instance-id": ${so.service-instance-id}, "service-type": ${so.service-type} @@ -7,4 +8,5 @@ "response-code": ${so.response-code}, "response-message": ${so.response-message}, "ack-final-indicator": ${so.ack-final-indicator} + } } diff --git a/platform-logic/restapi-templates/src/main/xml/so-response.xml b/platform-logic/restapi-templates/src/main/xml/so-response.xml new file mode 100644 index 00000000..0913c1ba --- /dev/null +++ b/platform-logic/restapi-templates/src/main/xml/so-response.xml @@ -0,0 +1,10 @@ +<input> + <service-information> + <service-instance-id>${so.service-instance-id}</service-instance-id> + <service-type>${so.service-type}</service-type> + </service-information> + <svc-request-id>${so.svc-request-id}</svc-request-id> + <response-code>${so.response-code}</response-code> + <response-message>${so.response-message}</response-message> + <ack-final-indicator>${so.ack-final-indicator}</ack-final-indicator> +</input> |