Proxy Definition File You can specify all proxy-specific information in a proxy

Oracle JCA Adapter for FilesFTP 4-95 sequence element name=Step type=proxy:StepType minOccurs=1 maxOccurs=unbounded sequence attribute name=key type=ID use=required attribute name=description type=string use=required attribute name=type type=proxy:Protocol use=optional complexType complexType name=StepType simpleContent extension base=string attribute name=command type=string use=required attribute name=args type=string use=required extension simpleContent complexType simpleType name=Protocol restriction base=string enumeration value=ftp enumeration value=http restriction simpleType schema A sample proxy definition file, based on the XML schema in Example 4–5 , would look as shown in Example 4–6 : Example 4–6 Proxy Definition File ?xml version = 1.0 standalone = yes? proxy:ProxyDefinitions xmlns:proxy=http:ns.oracle.comipafftpproxy Proxy key=http description=http type=http Step command=USER args=remote_username Step command=PASS args=remote_password Proxy proxy:ProxyDefinitions When you use the file in Example 4–6 , the Oracle FTP Adapter sends the following sequence of commands to log in: 1. USER remote_username 2. PASS remote_password You can also direct the proxy definition file to pick values from the deployment descriptor for Oracle FTP Adapter. You can use the following expressions for this: ■ proxy.user: This corresponds to the value of the proxyUsername parameter in the Oracle FTP Adapter deployment descriptor. ■ proxy.pass: This corresponds to the value of the proxyPassword parameter in the Oracle FTP Adapter deployment descriptor. ■ remote.user: This corresponds to the value of the username parameter in the Oracle FTP Adapter deployment descriptor. ■ remote.pass: This corresponds to the value of the password parameter in the Oracle FTP Adapter deployment descriptor. 4-96 Oracle Fusion Middleware Users Guide for Technology Adapters ■ remote.host: This corresponds to the value of the host parameter in the Oracle FTP Adapter deployment descriptor. ■ remote.port: This corresponds to the value of the port parameter in the Oracle FTP Adapter deployment descriptor. A sample proxy definition file based on the XML schema in Example 4–6 and taking values from the weblogic-ra.xml file is shown in Example 4–7 : Example 4–7 Proxy Definition File Taking Values from the Deployment Descriptor ?xml version = 1.0 standalone = yes? proxy:ProxyDefinitions xmlns:proxy=http:ns.oracle.comipafftpproxy Proxy key=http description=http type=http Step command=USER args=remote.user Step command=PASS args=remote.pass Proxy proxy:ProxyDefinitions

4.4.5.2 Configuring for SFTP Mode

For running the Oracle FTP Adapter in SFTP mode, you must specify the value of certain properties in the Oracle FTP Adapter deployment descriptor. Table 4–17 lists the properties that you must modify. A sample list of deployment descriptor properties is shown in Table 4–18 . Table 4–17 SFTP Mode Properties Property Description host The remote FTP server name. port The FTP control port number. username The SFTP user name. password The SFTP password. proxyHost The proxy server host name. proxyPort The proxy port number. proxyUsername The proxy user name. proxyPassword The proxy password. useSftp Specify true for SFTP mode. This value is required to use the SFTP feature. authenticationType Specify either PASSWORD or PUBLICKEY.PASSWORD See Section 4.4.4.3, Set Up Oracle FTP Adapter for SFTP transportProvider Specify http as value. Only HTTP transport provider is supported. Table 4–18 Sample SFTP Mode Properties and Values Property Value host my.host.com port 22 username user password password Oracle JCA Adapter for FilesFTP 4-97

4.5 Oracle File and FTP Adapters Use Cases

This section includes the following Oracle File and FTP Adapters use cases: ■ Section 4.5.1, Oracle File Adapter XML Debatching ■ Section 4.5.2, Flat Structure for Oracle BPEL PM ■ Section 4.5.3, Flat Structure for Mediator ■ Section 4.5.4, Oracle File Adapter Scalable DOM ■ Section 4.5.5, Oracle File Adapter ChunkedRead ■ Section 4.5.6, Oracle File Adapter Read File As Attachments ■ Section 4.5.7, Oracle File Adapter File Listing ■ Section 4.5.8, Oracle File Adapter Complex Structure ■ Section 4.5.9, Oracle FTP Adapter Debatching ■ Section 4.5.10, Oracle FTP Adapter Dynamic Synchronous Read ■ Section 4.5.11, Copying, Moving, and Deleting Files

4.5.1 Oracle File Adapter XML Debatching

This is an Oracle File Adapter feature that debatches large XML documents into smaller individual XML fragments. In this use case, the Debatching XML process uses the Oracle File Adapter to debatch an XML file containing a batch of employees occurring in the XML file as repeating nodes. These nodes are then processed and every individual node is written to separate output files. This use case includes the following sections: ■ Section 4.5.1.1, Prerequisites ■ Section 4.5.1.2, Designing the SOA Composite ■ Section 4.5.1.3, Creating the Inbound Oracle File Adapter Service ■ Section 4.5.1.4, Creating the Outbound File Adapter Service ■ Section 4.5.1.5, Wiring Services and Activities ■ Section 4.5.1.6, Deploying with JDeveloper ■ Section 4.5.1.7, Monitoring Using Oracle Enterprise Manager Fusion Middleware Control Console Fusion Middleware Control Console proxyHost proxy.host.com proxyPort 80 proxyUsername anonymous proxyPassword password useSFTP true authenticationType password transportProvider http Table 4–18 Cont. Sample SFTP Mode Properties and Values Property Value