Thursday, December 12, 2013

Oracle SOA Accept messages in REST format

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:
  1. Navigate to the Web Service Endpoint page, or the Service Home page.

  2. Click the Configuration tab. For SOA composites, click the Properties tab.

  3. 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.