Oracle Fusion supports both SOAP and REST web services, providing flexibility for integrating with various systems. Here's how you can use each type:
SOAP Web Services :
- Consuming SOAP Web Services :
- ADF Data Controls:
- Oracle ADF allows you to create data controls from WSDL (Web Services Description Language) files, which define the structure and operations of SOAP web services.
- These data controls can then be used in ADF applications to invoke web service operations.
- Web Service Proxies:
- You can generate Java proxies from WSDL files using tools like JDeveloper.
- These proxies provide a Java API for invoking web service operations programmatically.
- Oracle Integration Cloud (OIC):
- OIC provides adapters for SOAP web services, simplifying the process of integrating with them.
- Calling Web Services Programmatically:
- You can use Java libraries like JAX-WS to programmatically call SOAP web services.
- Exposing SOAP Web Services:
- ADF Business Components:
- ADF Business Components can be exposed as SOAP web services using Service Data Objects (SDOs).
- This allows you to make your business logic and data accessible to external applications.
- Oracle SOA Suite:
- Oracle SOA Suite provides a robust platform for creating and exposing SOAP web services.
- Oracle Integration Cloud (OIC):
- OIC allows for the creation and exposure of SOAP web services.
REST Web Services :
- Consuming REST Web Services:
- ADF REST Data Controls:
- ADF provides REST data controls that can be used to access RESTful web services.
- HTTP Clients:
- You can use Java HTTP client libraries (e.g., Apache HttpClient, java.net.http.HttpClient) to invoke RESTful web services programmatically.
- Oracle Integration Cloud (OIC):
- OIC provides REST adapters for consuming RESTful web services.
- JavaScript:
- REST web services can be called directly from client-side JavaScript code using the Fetch API or XMLHttpRequest.
- Exposing REST Web Services:
- ADF RESTful Web Services:
- ADF allows you to create RESTful web services using JAX-RS (Java API for RESTful Web Services).
- This allows you to expose your business logic and data as RESTful resources.
- Oracle REST Data Services (ORDS):
- ORDS enables you to create RESTful web services from Oracle Database objects.
- Oracle Integration Cloud (OIC):
- OIC provides REST adapters for exposing RESTful web services.
- Fusion APIs:
- Many of the Fusion cloud applications expose REST APIs.
Key Considerations :
- Data Format:
- SOAP uses XML for data exchange, while REST typically uses JSON or XML.
- Protocol:
- SOAP uses the SOAP protocol, while REST uses HTTP.
- Complexity:
- SOAP tends to be more complex than REST.
- Performance:
- REST is generally considered to be more lightweight and performant than SOAP.
- Security:
- Both SOAP and REST can be secured using various security mechanisms (e.g., WS-Security, OAuth).
Oracle Integration Cloud (OIC) Simplification :
OIC greatly simplifies the use of both SOAP and REST services. OIC provides prebuilt adapters, and a visual interface that drastically reduces the amount of coding needed.