Databases Reference
In-Depth Information
Note that the following operation names are supported:
Move
Copy
Delete
Modifying the binding
We now edit the bindings which are contained in a separate file to the WSDL called
<AdapterServiceName>_<file/ftp>.jca . Bindings describe how the service
description maps onto the physical service implementation. For now, we will just
modify the binding to add the additional operations needed and map them to the
appropriate implementation, as shown in the following code snippet:
<endpoint-interactionportType="Write_ptt"operation="Write">
<interaction-specclassName="oracle.tip.adapter.file.outbound.
FileInteractionSpec">
<propertyname="PhysicalDirectory"value="/user/oracle"/>
<propertyname="FileNamingConvention"value="fred.txt"/>
<propertyname="Append"value="false"/>
</interaction-spec>
</endpoint-interaction>
<endpoint-interactionportType="Write_ptt"operation="Move">
<interaction-specclassName="oracle.tip.adapter.file.outbound.
FileIoInteractionSpec">
<propertyname="Type"value="MOVE"/>
<propertyname="SourcePhysicalDirectory"value="/usr/oracle"/>
<propertyname="SourceFileName"value="fred.txt"/>
<propertyname="TargetPhysicalDirectory"value="/usr/payroll"/>
<propertyname="TargetFileName"value="Payroll.txt"/>
</interaction-spec>
</endpoint-interaction>
Note that the following types are supported for use with the equivalent operation
names. Observe that operation names are mixed case and types are uppercase:
MOVE
COPY
DELETE
The interaction-spec is used to define the types of operations supported by this
particular binding. It references a Java class that provides the functionality and may
have properties associated with it to configure its behavior. When using the FTP
adapter for move, copy, and delete operations, the InteractionSpec property in the
<AdapterServiceName>_ftp.jca file must be changed to oracle.tip.adapter.
ftp.outbound.FTPIoInteractionSpec .
 
Search WWH ::




Custom Search