这些页面呈现调用的 XML 内容并以三种不同形式提供对数据关联的访问权。
在“表单”视图中,添加标准 Web 服务调用所需的 XML 头。在头栏上,单击添加 () 以创建 WS-Addressing、WS-ReliableMessaging 或 WS-Coordination 请求的缺省 XML 头结构,或单击更多以了解其他标准。您可以启用或禁用 XML 头元素,并为每个 XML 元素指定正确值。将执行检查以确保 XML 内容有效。
此视图提供消息的 XML 结构的分层视图,包括元素、名称空间和关联的值。可使用添加、插入、移除、上移和下移来编辑树中的 XML 元素和名称空间。
使用为空时跳过列可选择要跳过的空 XML 元素。仅当您已在 中选中在 XML 树查看器中显示“为空时跳过”列复选框时,此列才可视。
单击过滤可根据需求隐藏或显示名称空间、属性或文本节点。
单击只允许有效修改可启用基于指定 XML 模式文档 (XSD) 的智能编辑。要为工作台指定一组 XSD 文档,请在测试导航器中,右键单击项目,然后选择属性和模式目录。如果没有 XSD 或者要绕过该模式,请禁用只允许有效修改。
可以右键单击 XML 元素以将其转换为 XML 片段。这使您可以对整个 XML 片段(而不仅对值)执行数据关联(使用数据池和创建引用)。
此页列出附加到调用的 MIME 附件。此视图的内容与多用途因特网邮件扩展 (MIME) 的规范对应。 可以使用此页面将工作台资源添加为 MIME 附件并更改属性。
内容标识是调用用来引用附件的标识。 使用此标识的方法取决于服务器要求。
此页面涵盖用于发送调用的协议。此协议可以是逐条消息的 HTTP 或 Java™ 消息服务 (JMS)。
此选项使您能够指定 HTTP 1.0 或 HTTP 1.1。
此字段使您能够指定 XML 调用的 URL。
此部分使您能够向调用添加头。头必须适合于指定的 HTTP 方法。
此部分使您能够管理 cookies。您可以添加、编辑和移除 cookie,以及创建引用。
此页面使您能够添加一些字符串属性,这些属性附加到对本地 JMS 配置的调用。这些属性将通过 JMS 发送为消息属性。
此页面使您能够覆盖一些设置,这些设置附加到对本地 WebSphere® MQ 配置的调用。
调用和消息返回通过 MQ 消息中的关联标识进行关联,这意味着消息的报告设置将设为 MQC.MQRO_COPY_MSG_ID_TO_CORREL_ID。服务器必须遵守此约束。这支持 WebSphere MQ 提供的 Transport for SOAP 功能部件。
如果用于创建消息调用的 Web 服务描述语言 (WSDL) 使用受支持的 JMS URI 来指向 WebSphere MQ 服务器,那么将自动创建 SSL 配置。 如果测试生成器无法创建 SSL 配置,那么您必须手动创建新 SSL 配置。
如果 WSDL 已通过 WebSphere MQ 服务 (amqwdeployWMService) 生成,请编辑 WSDL 以将传输绑定从 HTTP 更改为 JMS,从而防止测试生成器创建 HTTP 配置。
此页面使您能够添加在 Java 类中实施的定制安全算法。定制算法可应用于发送到服务器和从服务器接收的 XML 内容。
向堆栈添加定制安全算法后,通过此窗口,可以指定用于实施该算法的 Java 类。Java 类使用以下接口:
/**
* ***************************************************************
* IBM Confidential
*
* (c) Copyright IBM Corporation. 2008. All Rights Reserved.
*
* The source code for this program is not published or otherwise
* divested of its trade secrets, irrespective of what has been
* deposited with the U.S. Copyright Office.
* ***************************************************************
*
*/
package com.ibm.rational.test.lt.models.wscore.datamodel.security.xmlsec;
import java.util.Properties;
import org.w3c.dom.Document;
public interface ICustomSecurityAlgorithm {
/**
* The following methods can be used in both case:
* Execution in the workbench and execution of the test.
*/
/**
* Called to process de Document that is sent over a transport.
* @param subject
*/
void process(Document subject);
/**
* Called to un process a document that is received from a server.
* @param subject
*/
void unProcess(Document subject);
/**
* Properties defined in the UI of the CustomSecurityAlgorithm.
* @param map
*/
void setProperties(Properties map);
/**
* The following methods can only be used in terms of cast to test service interface,
* or in terms of access to the previous XML information, when the jar containing
* the custom security algorithm is deployed in the performance test project. In
* this case you cannot use the algorimth directly from the workbench.
*/
/**
* This object corresponds to the ITestExecutionService object.
* This applies only to an algorithm that must link to the execution of the test.
* If you plan to use this object you will need to deploy the jar containing the
* implementation into your performance test project and not directly into the JRE.
*
* In case of a need of the previous xml document received from the execution you can
* obtain the value using:
* IDataArea area = ((ITestExecutionService)executionObject).findDataArea(IDataArea.VIRTUALUSER);
*String previousXML = (String) area.get("PREVIOUS_XML"); //$NON-NLS-1$
*
*/
void setExecutionContext(Object executionObject);