FinSwitchDownloadFile

The FinSwitchDownloadFile function downloads the specified file from the FinSwitch server.

Properties

Authentication

Username

The username to authenticate against.

Password

The password to authenticate against.

Details

Url

The url of the FinSwitch web service.

Company code

The company code of the file to download.

File type

The type of file to download.

Category

The relevant category of the file type. Possible values will be determined by the selected file type.

File date

The date of the file to download.

Only download if changed

Only download the file if it has changed. If the file has not changed, a blank file will be saved.

Results

File path

The full path where the downloaded file will be saved.

File exists

If the file already exists, you can opt to

Increment file name will add a number to the filename to make that name unique. This is a sequential number starting with 1.

Overwrite file will replace all content in the file with the new content.

Throw exception will stop the Function's processing and return an error.

Settings

Settings

Allows to override the default values of various settings on the binding like timeouts and message size limits.

Eg. {"SendTimeout":"00:10:00","MaxReceivedMessageSize":"1048576"}

The values above will set the operation timeout to 10 minutes (overriding the default of 1 minute), and set the maximum message size that the binding will process to 1,048,576 bytes (overriding the default of 65,536 bytes).

See Binding Settings below for the list of available settings.

Definition

A string value that contains the full path where the downloaded file was saved.

Binding Settings

The following binding settings can be specified using the Settings property:

OpenTimeout

Default: 1 minute

The interval of time provided for a connection to open. This time span includes all necessary security handshakes, protocol negotiations etc.

CloseTimeout

Default: 1 minute

The interval of time provided for a connection to close. This time span includes all necessary security handshakes, protocol negotiations etc.

SendTimeout

Default: 1 minute

The interval of time provided for the entire service call to complete, from sending the request to receiving the response.

MaxReceivedMessageSize

Default: 65,536 bytes

The maximum size of received messages in bytes.

MaxBufferPoolSize

Default: 524,288 bytes

The maximum amount of memory, in bytes, allocated to the buffer manager for processing messages.

The buffer pool helps decrease the overhead due to memory allocation (and subsequent gargabe collection) while processing messages. A buffer pool size that is too small can cause degradation of performance due to extensive allocation from the CLR garbage heap.

MaxBufferSize

Default: 65,536 bytes

Available only when Security mode is set to None. Sets the maximum size, in bytes, of the buffer that receives messages from the channel.

TextEncoding

Default: UTF8

The character encoding that is used for transmitting text.
Allowed values: BigEndianUnicode, Default, Unicode, UTF32, UTF7, UTF8

TransferMode

Default: Buffered

Available only when Security mode is set to None. Selects if messages are sent buffered or streamed.

Allowed values: - Buffered
Request and response messages are both buffered. - Streamed
Request and response messages are both streamed. - StreamedRequest
The request message is streamed, and the response is buffered. - StreamedResponse
The request message is buffered, and the response is streamed.

finswitch.com