Mediatorexample….
My projectaimisto read data file(example txt) fromone file directoryandputinto anotherfile
directory…
For readingtxtfile( Incomingfile)Iamcreatingone directory
Ex: D:krishna
My data file isstudent.txt
Ur composite will looklikethis
Take one file adapteratexposedservice side…..
You needtoadd directoryforIncomingfiles…
Clickon Browse foradd directory…
Clickon native formatbuilder…
To converttxt file toxsd
For file name clickonbrowse..
Clickon finish…
Finallyclick on finish…
Make a wire to file adapter to mediator like this…
For put outgoing data file intodirectory we will create one directory..
Like
D:/write
Take a one more file adapter at reference side,….
Now click on browse for schema file…
Make a wire to mediator to write file adapter…
Now our task isto route the data by using mediator…
Now double clickon mediator…
IN filterExpressionI am writing conditionhere…
Expand the all root nodes…
Now click on Insertinto Expression
Finallyclick on ok..
Now we needto transferthe data by usingTransformation
Save all ….
Nowgo and deploy…
You can go and checkthe inputdirectoryandoutputdirectory…
Mediator-ORACLE SOA

Mediator-ORACLE SOA