diff options
author | Timoney, Dan (dt5972) <dtimoney@att.com> | 2019-10-01 15:14:29 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2019-10-02 18:50:39 +0000 |
commit | 13484bb7b625cca8cd0cb1f54200a3157216b4f3 (patch) | |
tree | 8161df45574f69d6dcc113da8fdb9f343b27f028 /platform-logic/restapi-templates | |
parent | 8d95a6e19c20ba778fe9c5c040da31f78e977077 (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: 4b19faedfa92b30c8d292d9a5f274c812764a99c
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> |