This post is continuous to my previous post (Integrating Oracle SOA with Oracle MFT-part1), in this part you will see how oracle SOA will invokes the MFT service.
To view my previous post click here .(https://khassoablog.wordpress.com/2016/03/11/integrating-oracle-soa-with-oracle-mft/)
Use Case 2:- Oracle SOA invoking Oracle MFT service
Go to MFT and create a new Source as type SOA. In URL field give some name.
Once the source is created it will show you the location as ENDPOINT URI.
Click on Save and deploy the Source.
Create a Target to pace the files in to your target location. Go to Target and create a Target as below .
Go to advanced properties of your target and click on Operations, select the operation type as “Rename” and file naming convention as “MyFinalFile%YYYYMMDDHHMMSS%.txt” .
Now click on Save and deploy.
Once you are done with creating “Source” and “Target”, you have to create a Transfer (Which will Transfer the file from your source to SOA).
For creating the Transfer click on “Transfer”, it will open a window to create a Transfer.
Provide the name and click on “Create”.
Add the source and target which we have created above.
Click on Save and deploy.
Now we have to invoke the MFT from Oracle SOA process, go to your project and right click on “External References” and select the MFT .
It will open a new window, give the name and click on Next.
Select the radio button “”Define using new MFT reference” and click on Next.
Select the App server and click on Next. (If you have not created the connection, create it by clicking on the + button).
Once you click on next, it will create a connection with your server and list the sources that are deployed on the MFT server.
Now we have to select the source and Endpoint URI.
Click on Finish button. Now wire your reference with the BPEL process.
Edit the bpel process and place a invoke activity and link it to the MFT reference.
Assign the payload and qheader to invoke partnerlink input variable.
Now assign the partner link response to final output variable.
Now your bpel process will look like this.
Now deploy the BPEL process to server. And test it by placing the file in your source location.
You can see both the transfer are successful in MFT monitoring.
You can see the file in target folder as below.