发送 Web 服务请求 |
“发送 Web 服务请求”操作会将 Integration Service 定向为发送 HTTP 请求到 Web 服务(REST 或 SOAP)。
You can configure the following properties for the Send Web Service Request 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.
Web 服务请求
URL: 输入希望发送到的 Web 服务器的 URL。 Alternatively, you can add a variable to specify the URL.
方式: 选择希望使用的 Web 请求 HTTP 方法。 选项包含 POST、GET、PUT、DELETE 或 HEAD。
内容类型: Select the content-type to use for the web request. 在选择 POST 或 PUT 方法时可用。
HTTP 头: Enter the HTTP header properties and values to be sent with the web request. You can select from a dictionary of HTTP header properties and values, or you can add a variable to specify the header property or value. You can also add a special character to the value you have entered.
来源
Content-Data: Specifies the content-data that you want to be sent with a POST or a PUT web request HTTP method. 在为“方法”属性选中 POST 或 PUT 时可用。
查询字符串: 指定希望通过 GET、DELETE 或 HEAD Web 请求 HTTP 方法发送的查询字符串。 在为“方法”属性选中 GET、DELETE 或 HEAD 时可用。
值: 使用提供的输入框输入想要操作使用的模板。 Alternatively, you can add a variable to specify the template, or add a special character to the value you have entered.
导入: Opens the Open File dialog so that you can browse to and select a file containing the desired script. 系统会将该文件的内容导入到“值”输入框中。
导出: 打开“保存文件”对话框以便将“值”输入框中的内容另存为外部文件。 可以将值另存为新文件或替换现有文件的内容。
变量:
变量: 键入指定想要为来源使用的变量。 或者,可以添加一个变量。
外部文件:
位置: 指定源文件夹所在的文件系统。 File systems or locations can include local file systems or network shares, Librarian, or a supported cloud storage location. For more information about supported cloud storage locations, see Administration Console's
文件名: 指定文件路径。 可以键入文件夹位置和文件名称,或单击“浏览”以找到所需的文件并选中。 Alternatively, you can add a variable to specify the desired file, or add a special character to the value you have entered.
文件编码: 指定源文件使用的编码。
HTTP 请求变量:
变量名: 指定希望用作来源的 HTTP 请求变量的变量名称。
值: 指定 HTTP 请求变量的值。
身份验证
方式: 指定操作将用来连接到客户端的身份验证方法。
匿名: Allows any user to access the client without providing a user name and password.
使用当前的 Windows 证书: Uses the current Windows user account to connect to the client.
使用指定的证书: Uses the user name, domain, and password that you provide to connect to the client.
我们的回答
成功状态代码: Enables you to specify the status codes that you deem successful.
将 Web 服务响应保存到变量: 指定希望保存 Web 服务响应的变量。 Enter the desired variable in the input box. 或者,可以添加一个变量。
高级选项
源内容在“SOAP 正文”标记中自动换行: Specifies that the source content will be wrapped in a SOAP Body tag before being sent.
发送超时: Specifies the amount of time in seconds to wait for a response from the client before the action fails.
重试计数: Specifies the number of times to re-send the request if the action fails.
测试发送 Web 服务请求
测试: 运行操作。 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.