Forum Stats

  • 3,767,980 Users
  • 2,252,736 Discussions
  • 7,874,399 Comments

Discussions

REST ADAPTER -OPERATION BINDINGS-POST-RESPONSE(JSON)

User_W2CZB
User_W2CZB Member Posts: 5 Green Ribbon
edited Aug 4, 2020 11:39PM in SOA Suite Discusssions

Hi Oracle SOA folks,

Please help me below queries

1.From source(REST Service) when I would like to send JSON response to the customer-In BPEL do I need to use Translate activity ?,because while testing in postman -I am unable to view JSON response without translate activity

2..From source(REST Service) when I am sending JSON response to the customer-the JSON body is like

<Root-Element xmlns="http://TargetNamespace.com/IN_REST_DEKO_UPLOADSO_UPLOADSO_response">

{

  "httpCode" : 200,

  "status" : "SUCCESS",

  "message" : "SOUPLOAD SUCCESSFULLY"

}

</Root-Element>

above one is POSTMAN(RAW VIEW)

but customer is only expecting only JSON body

{

  "httpCode" : 200,

  "status" : "SUCCESS",

  "message" : "SOUPLOAD SUCCESSFULLY"

}

Please help how to remove root tags while sending to customer