To generate a REST service based on a web service deployed on an application server:
-
From the Oracle JDeveloper main menu, select Window > Application Servers.
-
Right-click a WSDL service and select SOA > Expose as REST. Figure 37-6 provides details.
Figure 37-6 Automatic REST Adapter Service Binding Component Configuration
Description of "Figure 37-6 Automatic REST Adapter Service Binding Component Configuration"The Create REST Binding dialog is invoked and prepopulated with operation mappings from the selected WSDL file.
-
Complete any necessary configuration by following the procedures in How to Configure the REST Adapter as a Service Binding Component in a SOA Composite Application.
Note:
You are prompted to make a local copy of the selected WSDL and its dependent artifacts. If you select to make a local copy, the
binding.ws
section for the SOAP reference binding component contains the original concrete WSDL/endpoint location that was selected and the copied WSDL is used as the abstract WSDL (in the composite import, and so on).When configuration is complete, a REST service binding component is wired to a SOAP reference binding component. Figure 37-7 provides details.
Figure 37-7 REST Service Binding Component and SOAP Reference Binding Component Configuration
Description of "Figure 37-7 REST Service Binding Component and SOAP Reference Binding Component Configuration"