The SOA composites can be enabled or disabled to accept messages in Representational State Transfer (REST) format. This can be done Enabling or Disabling RESTful Web Services from Enterprise manger.
To enable or disable Web service styles:
- Navigate to the Web Service Endpoint page, or the Service Home page.
- Click the Configuration tab. For SOA composites, click the Properties tab.
- In the REST Enabled field, select True from the menu to enable REST, or select False to disable REST, and click Apply.
Below is the sample SOAP request and the URL to invoke the service in restful way.
SOAP Request
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body><ns1:singleString xmlns:ns1="http://xmlns.oracle.com/singleString"> venky</ns1:singleString> </soap:Body>
</soap:Envelope>REST URI
This can be tested with any rest client.Please note the operation name to be used in the URI.