This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Configuring File Inbound Protocol for FTP, SFTP and FILE Connections

The following section describes how to configure the file inbound protocol for FTP, SFTP and FILE connections.

  • To configure the file inbound protocol for FTP connections, you should specify the URL as ftp://{username}:{password}@{hostname/ip_address}/{source_filepath}

    ftp://admin:pass@localhost/orders
    
  • To configure the file inbound protocol for SFTP connections, you should specify the URL as sftp://{username}:{password}@{hostname/ip_address}/{source_filepath}

    sftp://admin:pass@localhost/orders

If the password contains special characters, these characters will need to be replaced with their hexadecimal representation.

  • To configure the file inbound protocol for FILE connections, you should specify the URL as file://{local_file_system_path}

    file:///home/user/test/in

Configuring a Proxy Server over FTP and SFTP Connections

Proxy server specific parameters can be set as URL query parameters. For example, to use Proxy over FTP, you could specify the URL as follows:

ftp://username:password@127.0.0.1/home/wso2/res?proxyServer=127.0.0.1&proxyPort=3128&proxyUsername=proxyuser&proxyPassword=proxyPass&timeout=2500&retryCount=3

Following are the URL parameters you can set:

Parameter

Description

Possible Values

Default Value

proxyServer

IP Address of the proxy server

127.0.0.1false

proxyPort

Running port of the proxy server1328false

proxyUsername

User name of the proxy server false

proxyPassword

Password of the proxy server false

timeout

Connection timeout in milliseconds10005000

retryCount

No of retry attempts if the connection timeout35

 

Â