Uploaded image for project: 'External API Framework'
  1. External API Framework
  2. EXTAPI-64

Invalid SO payload format as part of NBI ServiceOrder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Beijing Release
    • Beijing Release
    • None
    • None

      Currently the SO payload is sent in this format :

      }{{    "body": {  …   },    "headers": {   …   }}

      Instead of this :

      { ... }

      This file needs to be changed in order to only send the body content :

      src/main/java/org/onap/nbi/apis/serviceorder/SoClient.java

      try {

                  ResponseEntity<CreateServiceInstanceResponse> response = restTemplate.exchange(url, HttpMethod.POST,

      <                     new HttpEntity<>(requestDetailEntity.getBody(), buildRequestHeader()), CreateServiceInstanceResponse.class);

      >                     new HttpEntity<>(requestDetailEntity, buildRequestHeader()), CreateServiceInstanceResponse.class);

       

      try {

                  ResponseEntity<CreateServiceInstanceResponse> response = restTemplate.exchange(url, HttpMethod.DELETE,

      <                     new HttpEntity<>(requestDetailEntity.getBody(), buildRequestHeader()), CreateServiceInstanceResponse.class);

      >                     new HttpEntity<>(requestDetailEntity, buildRequestHeader()), CreateServiceInstanceResponse.class);

            nilap nilap
            chiarelloa chiarelloa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: