...
For outbound messaging, a MultiPartMessage
is constructed with a single part that wraps the request message as "text/xml" type. Users can specify the 'Content-ID' header field of the part via the Part Content ID field. For inbound messaging, both JMS and SonicMQ Transports can parse MultiPartMessage with multiple parts.
...
Creating New Tests for SonicMQ
To configure SOAtest to create tests for access SonicMQ, complete the following:
- Complete the WSDL test creation wizard as normal (see Creating Tests From a WSDL for details).
- Double-click the test node for the test that will be using SonicMQ.
- In the right GUI panel, open the Transport tab and select SonicMQ from the Transport drop-down menu. Various options will display underneath the Transport drop-down menu:
- Connection Settings
- Queue/Topic
- Messaging Model
- Message Exchange Pattern
- Message Type
- Request Message Properties
- Response Message Correlation
- Configure the desired options as described in the following sections.
Configuring SonicMQ Options
...
- If you created a Shared Property for SonicMQ Connections, a drop-down menu will be available from which you can choose Use Local Settings or Use Shared Property.
If you select Use Shared Property, a second drop-down menu displays from which you select the desired global SonicMQ settings that the tool will use. For more information, see
Conditional Content Product: (SOAtest) Product: (SOAtest) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015A9054C886C0AC137B8C01 Adding Global Test Suite Properties
.
- If you select Use Local Settings, or if no shared property is specified, you can configure the rest of the options for Connection Settings.
- Provider URL: Specifies the value of the property named javax.naming.Context.PROVIDER_URL passed to the JNDI javax.naming.InitialContext constructor.
- Initial Context: Specifies a fully qualified class name string, passed to the JNDI javax.nam-ing.InitialContext constructor as a string value for the property named javax.naming.Context.INITIAL_CONTEXT_FACTORY.
- Connection Factory: Passed to the lookup() method in javax.naming.InitialContext to create a javax.jms.QueueConnectionFactory or a javax.jms.TopicConnectionFactory instance
...
- Queue Connection Authentication: Allows users to provide a username and password to create a queue connection. Select the Perform Authentication check box and enter the Username and Password to authenticate the request. If the correct username and password are not used, the request will not be authenticated.The username and password provided here is passed to the createQueueConnection() method in the javax.jms.QueueConnectionFactory class in order to get an instance of javax.jms.QueueConnection.
...
- Keep-Alive Connection: Select to notify the test whether to share or close the current connection. The shared connections are returned to the connection pool to be used across the test suite. A life cycle of a connection pool is as follows:
- For a single test, it is destroyed at the end of the test execution.
- For a test suite, it is destroyed at the end of the test suite execution
Anchor | ||||
---|---|---|---|---|
|
...
- Match response JMSCorrelationID with request JMSMessageID: If selected, the term JMSCorrelationID = '[msgId]' will be appended to the selector expression, where msgId is dynamically generated from the outgoing (request) javax.jms.Message (using the getJMSMessageID() method). Effectively, this results in the tool blocking until a message with the specified correlation id becomes available in the queue (or topic) and it will only retrieve that particular message, rather than retrieving any message in the queue (or topic). The tool will timeout after the timeout amount elapses and if there is no message that watches the selector criteria.
- Match response JMSCorrelationID with request JMSCorrelationID: If selected, the term JMSCorrelationID = '[correlationId]' will be appended to the selector expression, where correlationId is retrieved from JMSCorrelationID property in the Message Properties section. The option becomes enabled only if such property is added to the Message Properties section. Effectively, this results in the tool blocking until a message with the specified correlation id becomes available in the queue (or topic) and it will only retrieve that particular message, rather than retrieve any message in the queue (or topic). The tool will timeout after the timeout amount elapses and if there is no message that watches the selector criteria.
Additional Selector Expression Terms: (Optional) Enter a value to act as a message filter. For tips on specifying a selector,
Conditional Content Product: (SOAtest) Product: (SOAtest) seesv-attr:0A010204015A9054C88481D043445E2F 0A010204015A9054C886C0AC137B8C01
Message Object Outputs for Clients Using SonicMQ
...