The SOAP Client tool sends messages to SOAP servers.
It can be used to test a Web service, test the communication between the client and server, and check the content of the SOAP messages. You can use the SOAP Client tool to test services with or without a WSDL. This tool is the foundation of most SOA functional test cases.
If you have access to a WSDL, you may want to use the New Test Suite Wizard to automatically generate SOAP Client tests for the service you want to test. For information on this functionality, see Automatic Creation of Test Suites - Overview.
In addition, you can configure SOAtest to report or manipulate the results of any SOAP Client test by adding an appropriate “output” tool. For information on this functionality, see Adding Test Outputs.
To send a message using the SOAP Client tool, you need to specify the message and how to send it by setting parameters in the tool’s configuration panel.Information on how to configure the different options of the SOAP Client tool can be found in the following subsections:
Specifying options in the WSDL tab allows you to populate the Request tab with items that make it easier for you to specify the request message. You can specify the following WSDL settings:
The WSDL tab allows you to specify the following WSDL settings:
The Request tab allows you to configure the request that you want the tool to send.
From the Request tab of the SOAP Client tool, you can select input modes from the Views list. The SOAP Client tool shares these options with the Messaging Client tool and Message Stub tool. For more information on these shared options, see Views/Input Modes Overview.
The Transport options allow you to determine whether the client sends requests using HTTP 1.0, HTTP 1.1, JMS, SonicMQ, WebSphere MQ, RMI, SMTP, TIBCO, .NET WCF HTTP, .NET WCF TCP or custom protocols. To configure the properties of each protocol, select the appropriate protocol from the Transport list within the Transport tab of the SOAP Client tool.
Copying and Pasting Transport Settings Across ToolsYou can copy transport settings from one tool to another.
|
For more information, see the following sections:
Clients chained to responders can route messages to virtual assets on the local server without consuming an HTTP connection by using localhost
, 127.0.0.1
, or the special host name host.virt.internal
. When using localhost
or 127.0.0.1
, the specified port must match the port Virtualize is deployed on; when using host.virt.internal
the port is not used. For example, a virtual asset deployed on http://localhost:9080/myVirtualAsset
can also be reached by a chained client using http://host.virt.internal/myVirtualAsset
.
The Attachment tab is deprecated and will be removed in a future version. |
The Attachment tab allows you to send either Binary or XML attachments without scripting. To send an attachment, perform the following from the Attachment tab:
The WS-Policy tab is used to keep track of which web services policy the tool is using. It also allows you to switch between policies and update the attached tools based on that policy.
The following options are available in the Misc tab of the SOAP Client tool:
302
or 500-599
. You can also choose Scripted from the Range menu to enter a script that programmatically specifies the valid HTTP response code(s). Timeout after (seconds): Specifies the length of delay (in seconds) after which your FTP, telnet, or HTTP requests should be timed out. The Default setting corresponds to the timeout set in the Preferences panel. The Custom setting allows you to enter a timeout. A non-positive timeout value can be entered to specify an infinite timeout.
Attachment Encapsulation Format: Specifies whether to use the Default or Custom encapsulation format. The Default option specifies whatever is chosen as the Attachment Encapsulation Format in the Misc tab of the system preferences (for more information, see SOAP Settings). The Custom option allows you to choose MIME, DIME, MTOMAlways, or MTOM Optional. For more details, see Working with Attachments.
The following tutorial lessons demonstrate how to use this tool: