Oracle SOA Suite 12c Essentials — Question 18
Which statement accurately describes how to use SOA Suite to create a REST interface for a provider application that does not support REST?
Answer options
- A. Oracle Service Bus must be used. An HTTP proxy service is created and a pipeline is added with a conditional branch for each HTTP verb that the interface will serve. If there is any non-XML payload, such as JSON, an external parser service must be used to translate it to XML.
- B. Use Oracle Service Bus or BPEL Process Manager and utilize the REST binding that is available for both. The REST binding will automatically translate a REST payload from JSON or XML to SOAP/XML for processing in the middleware layer.
- C. Use a BPEL process with a REST binding and utilize the nXSD activity to translate the native JSON payload to XML for processing.
- D. Use the HTTP transport in Oracle Service Bus for the REST interaction and use nXSD to translate the JSON payload to XML for processing.
Correct answer: B
Explanation
Answer B is correct because it specifies using the REST binding available in both Oracle Service Bus and BPEL Process Manager, which automatically handles the translation of REST payloads to SOAP/XML. The other options either require additional steps or do not leverage the automatic translation feature provided by the REST binding, making them less efficient for this scenario.