Invoke ODI Scenario using OdiInvokeWebService
Invoke ODI Scenario using OdiInvokeWebService:
In my earlier post I have shown, how we can use third party applications to invoke odi services. Today I will demonstrate the same using local agent and with the help of odi tool called “OdiInvokeWebService”. The best part is you dont need to write hundred lines of code to invoke the api.
Before we start please ensure one of your agent is up and running. This can be local or enterprise agent and I am assuming you are very much familiar with agent concepts. Since my local agent is running on my localhost, I will use below URL to test the wsdl. If you can see all the methods then you are all set to move on.
In ODI package drag and drop the OdiInvokeWenService and provide the URL. Then click on Advanced Button.
Click on the earth button to connect.
Now you can see all the methods available in left panel. Here we will go with requestPortType. In this post, our objective is to invoke an ODI Scenario using OdiInvokeWebservice.
Okay, select the invokeStartScen in left panel and provide the parameters as per your repository information. If you dont have any variables/parameters then just delete it. Next click on the green earth button (4) to invoke the odi scenario.
Immediately you can see the response which includes the session id information.
To verify this execution, go to operator and see the session history. You can see the scenario must be started with session ID 2520091 ( you might have different session id though 😀 ).
Want a response file ? Then just provide the file information as given below.
Contents of the response file
<?xml version = ‘1.0’ encoding = ‘UTF-8’?>
Remember it will not return the session status. You need to parse the xml file to read the session number and again send a request to get status of that particular session.
Thats all for today.
Thanks for reading.2