Thursday, October 10, 2019

12c OSB - Expose post rest OSB service using rest adapter

Create a service bus project.


 Create a REST adapter on left swim lane
Provide the rest adapter name, Type as "Service" and checked the service will invoke components using WSDL interfaces option.
Provide the Resource path name

 Click on plus sign to add the operation, HTTP verb and request response details.






 Now drag a pipeline and choose the created wsdl file


 De-select the expose as a proxy service


 Open the pipeline and add a stage it it
 Provide the xpath which to be sent as a response.


Test from SOAP UI:
Format:
http://localhost:<<OSB Port>/<<proxy endpoint>>/<<resource name>>
Rest URI:
http://hostname:2001/PostRestSBProject/RestService/Customer

 Test JSON Payload
 Test XML Payload

No comments:

Post a Comment

Featured Post

End to End Securing Data in Oracle Integration Cloud (OIC) with OCI Vault: AES for Encryption & Decryption & RSA for Signing and verification | Implement message-level encryption in Oracle Integration using OCI Vault

Scenario: A company is integrating Oracle Integration Cloud (OIC) with an external financial system to exchange sensitive payroll data secur...