Forum Discussion
roberticogonzal
14 years agoOccasional Contributor
Testing Asynchronous web services with soapUI
In an asynchronous web service the client sends a request to the server on an initial connection and the server replies with 202 Accepted. Then, after some point later in time (could be several hours), the server initiates a request on a new connection and the client replies with a 200 Ok.
0. Follow the steps to test a synchronous web service.
1. Define the "WS-A version" as "NONE" and "WS-A anomymous" as "optional" parameters at the interface level.
2. In order to capture the async message in soapUI, you need to use MockResponse TestStep . You can add it from the list of TestSteps available on a TestCase (right click on the TestCase/Add TestStep/MockResponse).
3. Be sure to set "Start Step" for it , under TestProperties in the lower left part of soapUI when MockResponse selected, so it knows when to start listening.
4. Check other TestProperties like port, path and timeout. The port must be unique and the path should match the operation response defined in the WSDL. The timeout could be set toi 30,000 ms
5. Set "Handle Response" to true.
6. The host should be set to the global variable containing the host name for the test server.
In an asynchronous web service the client sends a request to the server on an initial connection and the server replies with 202 Accepted. Then, after some point later in time (could be several hours), the server initiates a request on a new connection and the client replies with a 200 Ok.
0. Follow the steps to test a synchronous web service.
1. Define the "WS-A version" as "NONE" and "WS-A anomymous" as "optional" parameters at the interface level.
2. In order to capture the async message in soapUI, you need to use MockResponse TestStep . You can add it from the list of TestSteps available on a TestCase (right click on the TestCase/Add TestStep/MockResponse).
3. Be sure to set "Start Step" for it , under TestProperties in the lower left part of soapUI when MockResponse selected, so it knows when to start listening.
4. Check other TestProperties like port, path and timeout. The port must be unique and the path should match the operation response defined in the WSDL. The timeout could be set toi 30,000 ms
5. Set "Handle Response" to true.
6. The host should be set to the global variable containing the host name for the test server.