uCosminexus Service Platform, Reception and Adapter Definition Guide
The message format definition file of FTP reception uses the schema provided by the service platform. Therefore you need not create the message format definition file.
This subsection describes the types of message format used in FTP reception and contents of each type.
Storage location of the file is "Installation directory of service platform\CSC\schema\ftprecp".
The operation-wise request message format of FTP reception is described here.
The following table describes the request message format to be passed on to a business process from FTP reception of PUT operation. The file name is "urecp_ftp_put_request.xsd". The name of the namespace is "http://www.hitachi.co.jp/soft/xml/cosminexus/csc/reception/ftp/put_request".
Table 2-1 Request message format of FTP reception (PUT operation)
| Tag name | Occurrence count # | Description | |
|---|---|---|---|
| <request> | 1 time | - | |
| <ftpclient-ipaddr> | 1 time | Specifies IP address of FTP client. It is set in text format of IP address. |
|
| <ftp-user> | 1 time | Specifies the user name mentioned by FTP client in USER command. The information specified in the argument of USER command is set as-is. |
|
| <ftp-type> | 1 time | Specifies information of the type mentioned by FTP client in TYPE command. The information specified in the argument of TYPE command is set as-is. |
|
| <transfer-type> | 1 time | Specifies the transfer type. Either of the following types is set:
|
|
| <transfer-path> | 1 time | Specifies path of the file to be transferred. From the path information specified by FTP client in APPE command or STOR command, the information of the file path excluding sorting definition part mentioned in the beginning is set. "/" is set in the beginning without fail. |
|
| <file-name> | 1 time | Specifies name of the intermediate file containing data of the file sent by FTP client. | |
| <file-size> | 1 time | Specifies size of the data written in the intermediate file sent by FTP client. | |
| <request-id> | 1 time | Specifies the request ID. The request ID generated by FTP reception is set. | |
| <ftp-commands-before> | 0 or 1 time | Specifies the FTP command to be executed prior to transfer. It is set when the following FTP command is requested by FTP client: SITE CSCTHR -B <FTP command>[;<FTP command> ...] Here, "<FTP command>[;<FTP command> ...]" is set as-is. However, the FTP command specified in the argument of SITE CSCTHR command is not set, if it is not permitted in FTP command permission list definition function. When CSCTHR command is requested multiple times by FTP client, "<FTP command>[;<FTP command> ...]" is joined with semicolon (;) in the sequence in which SITE CSCTHR command is executed and it is added. If CSCTHR command is not requested even once, this tag is not output. |
|
| <ftp-commands-after> | 0 or 1 time | Specifies the FTP command to be executed after transfer. It is set, when the following FTP command is requested by FTP client. SITE CSCTHR -A <FTP command>[;<FTP command> ...] Here, "<FTP command>[;<FTP command> ...]" is set as-is. However, the FTP command specified in the argument of SITE CSCTHR command is not set, if it is not permitted in the FTP command permission list definition function. When CSCTHR command is requested multiple times by FTP client, "<FTP command>[;<FTP command> ...]" is joined with semicolon (;) in the sequence in which SITE CSCTHR command is executed and it is added. If CSCTHR command is not requested even once, this tag is not output. |
|
The following table describes the request message format to be passed on to a business process from FTP reception of GET operation. The file name is "urecp_ftp_get_request.xsd". The name of the namespace is "http://www.hitachi.co.jp/soft/xml/cosminexus/csc/reception/ftp/get_request".
Table 2-2 Request message format of FTP reception (GET operation)
| Tag name | Occurrence count # | Description | |
|---|---|---|---|
| <request> | 1 time | - | |
| <ftpclient-ipaddr> | 1 time | Specifies IP address of FTP client. It is set in text format of IP address. |
|
| <ftp-user> | 1 time | Specifies the user name mentioned by FTP client in USER command. The information specified in the argument of USER command is set-is. |
|
| <ftp-type> | 1 time | Specifies information of the type mentioned by FTP client in TYPE command. The information specified in the argument of TYPE command is set as-is. |
|
| <transfer-type> | 1 time | Specifies the transfer type. The following contents are set:
|
|
| <transfer-path> | 1 time | Specifies path of the file to be transferred. From the path information specified by FTP client in RETR command, the information of the file path excluding sorting definition part mentioned in the beginning is set. "/" should be set in the beginning. |
|
| <request-id> | 1 time | Specifies the request ID. The request ID generated by FTP reception is set. | |
| <ftp-commands-before> | 0 or 1 time | Specifies the FTP command to be executed before transfer. It is set, when the following FTP command is requested by FTP client: SITE CSCTHR -B <FTP command>[;<FTP command> ...] Here, "<FTP command>[;<FTP command> ...]" is set as-is. However, the FTP command specified in the argument of SITE CSCTHR command is not set, if it is not permitted in the FTP command permission list definition function. When CSCTHR command is requested multiple times by FTP client, "<FTP command>[;<FTP command> ...]" is joined with semicolon (;) in the sequence in which SITE CSCTHR command is executed and it is added. If CSCTHR command is not requested even once, this tag is not output. |
|
| <ftp-commands-after> | 0 or 1 time | Specifies the FTP command to be executed after transfer. It is set, when the following command is requested by FTP client: SITE CSCTHR -A <FTP command>[;<FTP command> ...] Here, "<FTP command>[;<FTP command> ...]" is set as-is. However, the FTP command specified in the argument of SITE CSCTHR command is not set, if it is not permitted in the FTP command permission list definition function. When CSCTHR command is requested multiple times by FTP client, "<FTP command>[;<FTP command> ...]" is joined with semicolon (;) in the sequence in which SITE CSCTHR command is executed and it is added. If CSCTHR command is not requested even once, this tag is not output. |
|
The following table describes the request message format to be passed on to a business process from FTP reception of GETINFO operation. The file name is "urecp_ftp_getinfo_request.xsd". The name of the namespace is "http://www.hitachi.co.jp/soft/xml/cosminexus/csc/reception/ftp/getinfo_request".
Table 2-3 Request message format of FTP reception (GETINFO operation)
| Tag name | Occurrence count # | Description | |
|---|---|---|---|
| <request> | 1 time | - | |
| <ftpclient-ipaddr> | 1 time | Specifies IP address of FTP client. It is set in text format of IP address. |
|
| <ftp-user> | 1 time | Specifies the user name mentioned by FTP client in USER command. The information specified in the argument of USER command is set as-is. |
|
| <getinfo-type> | 1 time | Either of the following options is set as information acquisition type:
|
|
| <getinfo-option> | 0 or 1 time | Specifies the information about the information acquisition option. When all of the following conditions are fulfilled, a string same as the one set in the option definition file is set:
|
|
| <getinfo-path> | 0 or 1 time | Specifies the information about information acquisition path. When the <getinfo-option> tag is not output, the argument specified by FTP client in LIST command or NLST command is set as-is. When the <getinfo-option> tag is output, from the start of the argument specified by FTP client in LIST command or NLST command, the option information output to the <getinfo-option> tag and path information excluding the space after the option information are set. Note that, this tag is not output, if either of the following conditions is applicable:
|
|
| <request-id> | 1 time | Specifies the request ID. The request ID generated by FTP reception is set. | |
| <ftp-commands-before> | 0 or 1 time | Specified the FTP command to be executed before executing list command. It is set, when the following FTP command is requested by FTP client: SITE CSCTHR -B <FTP command>[;<FTP command> ...] Here, "<FTP command>[;<FTP command> ...]" is set as-is. However, the FTP command specified in the argument of SITE CSCTHR command is not set, if it is not permitted in the FTP command permission list definition function. When CSCTHR command is requested multiple times by FTP client, "<FTP command>[;<FTP command> ...]" is joined with semicolon (;) in the sequence in which SITE CSCTHR command is executed and it is added. If CSCTHR command is not requested even once, this tag is not output. |
|
| <ftp-commands-after> | 0 or 1 time | Specifies the FTP command to be executed after execution of list command. It is set, when the following command is requested by FTP client: SITE CSCTHR -A <FTP command>[;<FTP command> ...] Here, "<FTP command>[;<FTP command> ...]" is set as-is. However, the FTP command specified in the argument of SITE CSCTHR command is not set, if it is not permitted in the FTP command permission list definition function. When CSCTHR command is requested multiple times by FTP client, "<FTP command>[;<FTP command> ...]" is joined with semicolon (;) in the sequence in which SITE CSCTHR command is executed and it is added. If CSCTHR command is not requested even once, this tag is not output. |
|
The operation-wise response message format of FTP reception is described here.
The following table describes the response message format to be passed on to FTP reception of PUT operation from a business process. The file name is "urecp_ftp_put_response.xsd". The name of the namespace is "http://www.hitachi.co.jp/soft/xml/cosminexus/csc/reception/ftp/put_response".
Table 2-4 Response message format of FTP reception (PUT operation)
| Tag name | Occurrence count # | Description | |
|---|---|---|---|
| <response> | 1 time | - | |
| <message> | 0 or 1 time | Specifies a message indicating end of a business process. Maximum character length that can be specified in a message is 1,024. If length of the message specified by you exceeds the maximum value, the last part of the message is truncated so that the message fits in 1,024 characters. If a message contains a character that cannot be used#2, such character is replaced with a question mark (?). If you omit the message, the following message is set:
|
|
| <success> | 0 or 1 time | Specifies a flag indicating end of a business process. Specify either of the following flags:
|
|
The following table describes the response message format to be passed on to FTP reception of GET operation from a business process. The file name is "urecp_ftp_get_response.xsd". The name of the namespace is "http://www.hitachi.co.jp/soft/xml/cosminexus/csc/reception/ftp/get_response".
Table 2-5 Response message format of FTP reception (GET operation)
| Tag name | Occurrence count#1 | Description | |
|---|---|---|---|
| <response> | 1 time | - | |
| <message> | 0 or 1 time | Specifies a message indicating end of a business process. Maximum character length that can be specified in a message is 1,024. If length of the message specified by you exceeds the maximum value, the last part of the message is truncated so that the message fits in 1,024 characters. If a message contains a character that cannot be used#2, such character is replaced with a question mark (?). If you omit the message, the following message is set:
|
|
| <success> | 0 or 1 time | Specifies a flag indicating end of a business process. Specify either of the following flags:
|
|
| <file-name> | 0 or 1 time | Specifies name of the intermediate file in which data of the file to be resent to FTP client is mentioned. However, if value of the <success> tag is false, this setting is not required. Even if this setting is performed, it is ignored. |
|
| <file-size> | 0 or 1 time | Specifies size of data of the file to be resent to FTP client. However, if value of the <success> tag is false, this setting is not required. Even if this setting is performed, it is ignored. |
|
The following table describes the response message format to be passed on to FTP reception of GETINFO operation from a business process. The file name is "urecp_ftp_getinfo_response.xsd". The name of the namespace is "http://www.hitachi.co.jp/soft/xml/cosminexus/csc/reception/ftp/getinfo_response".
Table 2-6 Response message format of FTP reception (GETINFO operation)
| Tag name | Occurrence count #1 | Description | |
|---|---|---|---|
| <response> | 1 time | - | |
| <reply-code> | 0 or 1 time | Specifies the reply code received from FTP server when information acquisition process is executed (or code based on this). When executing the information acquisition process using GETINFO operation of FTP adapter, it is recommended that you set the value of <reply-code> of response message of FTP adapter. Value that can be specified in this tag is a number between 200 to 299 or 400 to 599. If you set a number between 200 to 299, the reply code that is returned to FTP client is 266. If you set a number between 400 to 599, the set value is the reply code that is returned to FTP client. If value of the <success> tag is true and if you omit this tag, FTP reception assumes 226 in the reply code. If value of the <success> tag is false, this setting is not required. Even if this setting is performed, it is ignored. |
|
| <message> | 0 or 1 time | Specifies the reply message received from FTP server when the information acquisition process is executed or the message indicating end of a business process. Maximum character length that can be specified in a message is 1,024. If length of the message specified by you exceeds the maximum value, the last part of the message is truncated so that the message fits in 1,024 characters. If a message contains a character that cannot be used#2, such character is replaced with a question mark (?). If you omit the message, the following message is set:
|
|
| <success> | 0 or 1 time | Specifies the flag indicating end of a business process. Specify either of the following flags:
|
|
| <file-name> | 0 or 1 time | Specifies name of the intermediate file in which data of the file to be resent to FTP client is mentioned. The information acquired in the following format must be mentioned in the file specified in this tag:
|
|
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.