How to invoke/Call Fusion HCM REST(ADF) web service?
Fusion HCM is delivered with SOAP and REST services for the various business data object to perform several actions like DML(create/update/delete) and retrieve the information.
In below example, we will see how to invoke REST service to retrieve employee information in POSTMAN tool using 'Basic Authentication'
Prerequisites:
-> Create a cloud user and assign 'Integration Specialist' and 'Human Capital Management Integration Specialist' roles.
-> Install POSTMAN tool or add POSTMAN app to chrome
Steps
Identify REST Url
-> Click on navigator button and click on 'Developer Connect' link
-> Search the web service that you want to invoke.Click on the service and navigate to below screen
-> Click on the second icon on the left side and identify the operation(method) that you want to invoke.
-> You can use below endpoint url(WADL) to query employee information. Please change hostname and port.
https://hostname:port/hcmCoreApi/resources/11.1.11/emps/
Please refer Oracle Doc for list of available services
Invoking REST service in Postman:
-> launch the POSTMAN and click on 'New' button on the right corner and select request
-> Enter the request name, description and select the folder where you want to store this request.
-> Click on Save button and navigate to below screen. Enter the REST URL and select the type of authentication as 'Basic Auth'. Enter the user credentials and click on update request button,
-> Click on headers link
In below example, we will see how to invoke REST service to retrieve employee information in POSTMAN tool using 'Basic Authentication'
Prerequisites:
-> Create a cloud user and assign 'Integration Specialist' and 'Human Capital Management Integration Specialist' roles.
-> Install POSTMAN tool or add POSTMAN app to chrome
Steps
Identify REST Url
-> Click on navigator button and click on 'Developer Connect' link
-> Search the web service that you want to invoke.Click on the service and navigate to below screen
-> Click on the second icon on the left side and identify the operation(method) that you want to invoke.
-> You can use below endpoint url(WADL) to query employee information. Please change hostname and port.
https://hostname:port/hcmCoreApi/resources/11.1.11/emps/
Please refer Oracle Doc for list of available services
Invoking REST service in Postman:
-> launch the POSTMAN and click on 'New' button on the right corner and select request
-> Enter the request name, description and select the folder where you want to store this request.
-> Click on Save button and navigate to below screen. Enter the REST URL and select the type of authentication as 'Basic Auth'. Enter the user credentials and click on update request button,
-> Click on headers link
-> We need to pass query parameter as header attribute. I am querying all the people whose last name is 'Sharma'. Please add a new header as shown below.
-> Click on the Send button. you will see Status(right corner) as 200 if REST call is successful and also see the output payload under 'Body' link
Comments
Post a Comment