从网络套接字读取 |
The Read from Network Socket action directs the Integration Service to read from a network socket for incoming data.
You can configure the following properties for the Read from Network Socket action:
操作
名称: 指定操作的名称。 如果需要,可以通过在字段中键入新名称来替换默认名称。
描述: 用于保存操作的描述。
Run Action: 用于指定希望运行操作的频率。
始终: 指定 Integration Service 将在每次运行集成时运行操作。
从不: 指定 Integration Service 将不会在运行集成时运行操作。
Conditionally, based on variable: Specifies that the Integration Service will run the action only when a selected variable meets a specified condition. 在仅有一个条件可以确定是否运行操作的情况下才可使用此选项。 只要启用了此选项,就可以在提供的输入框中创建条件语句。
根据表达式,在一定条件下: Specifies the conditions under which the Integration Service will run the action. 此选项在需要不只一个条件语句的情况下使用。 只要启用了此选项,就可以通过创建所需的条件语句在提供的输入框中创建条件表达式。 You create and edit your conditional expression on the Tree View tab. Click the Text View tab to see a read-only text view of the conditional expression.
网络套接字
通过原始入站集成连接读取数据: Specifies that the data is read from the same socket connection as the one that is specified by the parent network socket integration. Available only when the parent integration is a network socket integration.
Read with new connection: Specifies that the data is read from a new socket connection. 在选择了“通过新连接读取”选项时,或当父集成方法是其他方法而不是“网络套接字”集成时,可以使用以下选项定义从中读取数据的网络套接字连接:
协议: 指定使用的套接字协议。
端口: 指定网络地址端口。
侦听所有网络接口: 启用此选项后,套接字会侦听所有网络地址。
侦听特定 IP 地址 (v4/v6): 启用此选项后,套接字仅会侦听指定的 IP 地址。
通信设置
读取超时: 指定等待套接字读取数据的时间量。
写入超时: 指定等待套接字写入数据的时间量。
连接协议
当客户端连接时发送确认消息: Specifies the message that is sent when the socket connection is made. Enter the message that you want in the input box. Alternatively, you can add a variable to specify the acknowledgment message. You can also add a special character to the value you have entered.
在从客户端连接读取数据后写入响应消息: Specifies the message that is sent after the action runs. Enter the message that you want in the input box. Alternatively, you can add a variable to specify the response message. You can also add a special character to the value you have entered.
数据选项
编码: 指定用于编码正在读取的消息的方法。
Stop Reading When: 指定 Integration Service 停止读取消息的时间。
Sequence of Characters is Received: 在接收到特定顺序的字符后,将 Integration Service 定向为停止读取消息。
字符: 指定指示 Integration Service 停止读取消息的一系列字符。
Include sequence in input data contents: 指定指示的一系列字符作为数据内容的一部分读取。
Number of Characters is Received: 在接收到特定数量的字符后,将 Integration Service 定向为停止读取消息。
字符: 指定 Integration Service 将会在消息中接收的最大数量的字符。
Port Becomes Idle: 在端口空闲指定时间段之后,将 Integration Service 定向为停止读取消息。
等待时间: 指定在 Integration Service 停止读取消息之前,端口可以空闲的时间量。
Socket is Disconnected: 在断开套接字时,将 Integration Service 定向为停止读取消息。
Content Type: 数据内容类型。 Integration Service 根据此格式处理消息的内容。
Data is contained in a SOAP message: When enabled, the Integration Service expects the data to be contained in a SOAP message.
我们的回答
使用新连接响应: 启用此选项后,会将 Integration Service 定向为使用新的指定连接响应。
主机名: 启用此选项后,用于指定希望连接到的远程主机的 DNS 名称。
IP 地址 (v4/v6): 启用此选项后,用于指定连接的 IP 地址。
端口: 指定网络地址端口。
输出
Save input data to variable: 指定希望保存操作输入的变量。 输入所需变量。 或者,可以添加一个变量。
测试从网络套接字读取
测试: 运行操作。 The Message pane displays information on the success or failure of the action.
|
Clicking the Test button executes the action only and does not run the integration. 因此,操作将会在不使用曾经可能配置为使用的集成中的任何数据的情况下运行。 For information on testing your integration, refer to Using the Test Pane. |
用户帐户
Inherit from parent action: When enabled, the action inherits the user account credentials specified on the Actions property page. Alternatively, if the action is part of a Group action, it will inherit the user account credentials specified on the immediate parent Group action’s property page.
指定用户凭据: 启用此选项后,会使用指定的凭据运行操作。
错误处理和诊断
Ignore errors and continue running actions: 启用此选项后,指定如果操作失败,那么会继续运行其余操作。
|
如果未启用此属性,并且操作失败,那么产生的行为取决于以下方案:
If the selected action is within a Group action, no actions outside of that Group action are affected. |
Retry if failed: 启用此选项后,指定如果操作失败,那么 Integration Service 会尝试再次运行操作。
Maximum retries: 指定 Integration Service 将会再次尝试运行操作的最大次数。 Available when Retry if failed is enabled.
Retry interval: 指定 Integration Service 将在操作失败后,尝试再次运行操作之前等待的最大时间。 Available when Retry if failed is enabled.