With the URL adapter, it is possible to get and put messages via the FTP protocol. The input and output of this adapter is always of type Blob to support all possible data types (e.g. binary for images, text with HTML code, XML messages, etc.).
A lot of times these protocols get confused and mixed up due to the similarity in function and names. The xUML Runtime supports the following file transfer protocols:
The transfer mode by default is set to binary, only the list command is transferred in ASCII mode.
You can change the transfer mode by using cURL option CURLOPT_QUOTE (see chapter Setting cURL Options on the URL Adapter). When using this option, the transfer mode is changed before any method is executed. Using the command TYPE Ib in the command array, you can change this behavior and these commands are executed after any method.
Streaming FTP
When reading or writing files, the examples load the whole file into memory. This might cause problems if these files are big.
In order to avoid consuming too much memory the URL adapter offers the option to read and write data in little chunks. This mechanism is called streaming, since, after reading a small data chunk from the FTP server, it is immediately written to a file before doing the next read. For sending data, the mechanism works analogously.
Alias Attributes
Find below a list of relevant alias attributes, if the URL adapter is used with the FTP protocol. Default values used when an option is not explicitly set are written in bold.
Attribute
Description
Allowed Values / Examples
Standard
protocol
Transport protocol.
ftp
port
Machine port number the service is binding to. This port number can be given at service level only.
a valid port number (default: 21)
path
HTTP path for the SOAP request.
method
HTTP method of the URL adapter call. Default is "POST" if no value is specified.