This post describes about how to Integrate Oracle Managed File Transfer
and SOA
A SOA target in Oracle Managed File Transfer corresponds to an MFT service binding component in SOA or simply we can depict above scenario as
Even though above diagram depicts the flow is from MFT to SOA but while developing we will first create SOA composite and will give the SOA composite endpoint URI in the MFT target. So, high level steps are
Deploy the project MFT_SOA_Integration
Copy the endpoint URI we will use this when creating MFT target
Go to Design tab to create the MFT Artifacts(Source,target,Transfer)
We can also give other properties but as of now we will leave other values to default
Now create target by providing the SOA Endpoint URI
In the advance options keep message type as text
Create Transfer
Add the already created source and target in the transfer
After adding source and target to transfer
In the Source add content filter as Sample*.txt which means that we are going to read files of above pattern
In the target side set delivery preference, as inline which means until the file is of 1048576 bytes data in the file will be sent as payload. If file size is more than that file will be moved as reference
Now save and Deploy
Keep the file in the location (D:\DEMO\MFT) with some text.
Go to Transfer Instances and instances
If we click the “id” of instance we can see the flow
Now go to BPEL we can see the instance is created for the soa project
Open the flow instance
In the above scenario we are getting file content in
the payload .If the file size is more than 104850 bytes we can get the file as
reference.
Now create file size more than 104850 and resubmit the transfer in the monitoring tab new instance is created with file in reference
A SOA target in Oracle Managed File Transfer corresponds to an MFT service binding component in SOA or simply we can depict above scenario as
Even though above diagram depicts the flow is from MFT to SOA but while developing we will first create SOA composite and will give the SOA composite endpoint URI in the MFT target. So, high level steps are
- In Jdeveloper Create SOA project with BPEL in components section and MFT Adapter in service Section. Deploy the SOA project and get the endpoint URI.
- In MFT Create Source as file and create target as SOA by providing the Endpoint URI
Create BPEL with define services later
Create MFT Adapter at service section
Click finish and join MFT adapter and BPEL
In the Bpel create Receive activity wire it to the
MFTService and set input variable Check
the check box for Create Instance.
Create reply activity
Add assign activity
Deploy the project MFT_SOA_Integration
Copy the endpoint URI we will use this when creating MFT target
Go to Design tab to create the MFT Artifacts(Source,target,Transfer)
create source
We can also give other properties but as of now we will leave other values to default
Now create target by providing the SOA Endpoint URI
In the advance options keep message type as text
Create Transfer
Add the already created source and target in the transfer
After adding source and target to transfer
In the Source add content filter as Sample*.txt which means that we are going to read files of above pattern
In the target side set delivery preference, as inline which means until the file is of 1048576 bytes data in the file will be sent as payload. If file size is more than that file will be moved as reference
Now save and Deploy
Keep the file in the location (D:\DEMO\MFT) with some text.
Now go to Monitoring
tab you can see our deployed Transfer
Go to Transfer Instances and instances
If we click the “id” of instance we can see the flow
Now go to BPEL we can see the instance is created for the soa project
Open the flow instance
Now create file size more than 104850 and resubmit the transfer in the monitoring tab new instance is created with file in reference