This blog is the third part of series “Using ICS to connect to Social Media (LinkedIn)“. Click here to check the first part of Blog that is Creating Connector from ICS to LinkedIn and here to check second part of the blog that is Creating the orchestration, request and response mappings. In this third part, we will Create a mock client using SOAPUI, and test the flow.
Creating a mock client using SOAPUI, and test the flow:
1) Go to the home page again. On the page you are now, you would have a list of all integrations that are currently in-progress or complete. The ones that are complete would have a ‘drag-button’ on their right, as you can see in the screenshot below. This signifies that the integration is now completed and ready to be activated (deployed).
2) Drag the button to the right, which would bring up a prompt to ask if you want to ‘Enable Tracing’. Check it, and click ‘Activate’. When it’s activated (the drag-button turns green, as seen in the screen below), click the small ‘i’ icon next to the green button, which displays information about this integration, alongwith the endpoint. Copy this endpoint. At this point, your integration is developed, deployed and ready to be called by external clients
3) Open the copied endpoint in a browser which opens up the information about this interface, such as methods it exposes, and their sample data
Now, all that is left is, creating a SoapUI project to test the flow, confirm that data is being published on LinkedIn.
4) Create a new REST project in SoapUI, and enter the endpoint of your integration. Make a small change in the URL, replace the ‘metadata’ in the end with ‘postopp’. If you remember, this is the relative resource URI that we configured when configuring the REST adapter in the integration, thus the REST adapter is expecting a request at this endpoint
5) Click OK. Now, change the method that you are calling to ‘POST’, put
“message”: “We have a new opportunity https://www.accenture.com/cn-en/careers/jobdetails?id=00352101_en“
in the request field, and configure ‘basic authentication’ with your ICS login and password (for SOAPUI to be able to access ICS)
6) Test the request. You should see the response message in the response pane as shown below.
7) Go to your LinkedIn account, and check your recent activity. You should see the message posted there.
Finally, the implementation and testing for the service are completed.
Tracing abilities of ICS:
To track your requests, go to the ICS home page and click ‘Monitoring’ at top right. This would bring you to the below. You could drill down to see individual messages and any error messages by clicking on the first card. Also, it is possible to download out, diagnostic and the main logs from this screen for detailed troubleshooting from this screen.
So this is all about the third part. I hope you found this series of blogs useful in taking your first steps towards Oracle ICS. I would love to hear your views about this series, and if you faced any problems in implementing this.
This post is from our Oracle Integration Cloud Services Training where we also cover about configuring Adaptors and connections, Configuring integrations, Data Mapping, Lookups, SaaS, On-premises integration agents, Security, Schedules, Versioning, Activating, Monitoring integrations and much more.
Next Task for you:
Did you get a chance to download 6 Documents Every Oracle Cloud integrator must read? If not, then get it now by clicking on the link below.
If you liked this post then share with Your Friends over Social Media!