The Messaging Client tool sends payloads over HTTP to the server. It is very useful for non-SOAP clients, such as XML servlets and proprietary web services that have their own specifications.It can be used to test a service, test the communication between the client and server, and check the content of the HTTP messages.In addition, the Messaging Client can be used for REST style services.For more information, see Testing RESTful Services.The REST Client tool can also be used to send messages to RESTful services. For more details, see REST Client.
To send a message using the Messaging Client tool, you need to tell SOAtest or Virtualize what message to send and how to send it. This is done by specifying the following parameters in the tool’s configuration panel.
This topic explains how to configure and apply the Messaging Client tool that sends HTTP messages to servers. Sections include:
Specifying options at the top of the configuration panel allows SOAtest and/or Virtualize to populate the Request tab with items that make it easier for you to specify the request message. You can specify the following schema settings:
From the Request tab of the Messaging Client tool, you can select input modes from the Input Mode drop-down list. The Messaging Client tool shares Input Mode options with the SOAP Client tool and Message Stub tool. For more information on these shared options, see Message Tool and Responder Options.
Note that in addition to the usual options, you can also use a table view, which is designed for posting form parameters. For details, see Table Input Options.
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, or TIBCO protocols—or a custom protocol (To select a custom method, choose CUSTOM then enter the name of your custom method in the Value field that displays). To configure the properties of each protocol, select the appropriate protocol from the Transport drop-down list.
For more information, see the following sections:
The following options are available in the Success Criteria tab of the Messaging Client tool:
2xxrange. Specify single codes and/or code ranges as a comma-separated list. For example, if you use "
302, 500-599", a
302code or any code in the 5xx range will be accepted. If you're using a parameterized value, be sure that the value in the data source uses this same format (e.g., "
Timeout after (milliseconds): Specifies the length of delay (in milliseconds) after which your FTP, telnet, or HTTP requests should time 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.
The following tutorial lesson demonstrates how to use this tool: