Earlier
<adapter-config name="MoveFile" adapter="File Adapter" wsdlLocation="MoveFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/FileAdapter"/>
<endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
<interaction-spec className="oracle.tip.adapter.file.outbound.FileReadInteractionSpec">
<property name="DeleteFile" value="true"/>
<property name="PhysicalDirectory" value="dummy"/>
<property name="FileName" value="dummy"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>
New
<adapter-config name="MoveFile" adapter="File Adapter"
wsdlLocation="MoveFile.wsdl"
xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/FileAdapter"/>
<endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
<interaction-spec className="oracle.tip.adapter.file.outbound.FileIoInteractionSpec">
<property name="SourcePhysicalDirectory" value="SourceDirectory"/>
<property name="SourceFileName" value="SourceFileName.txt"/>
<property name="TargetPhysicalDirectory" value="TargetDirectory"/>
<property name="TargetFileName" value="TragetFileName.txt"/>
<property name="Type" value="MOVE"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>
Refernence Link :
http://www.soawork.com/2012/12/move-file-using-file-adapter.html
Comments
Post a Comment