+

Search Tips   |   Advanced Search


Asynchronous service testing overview

Asynchronous services use a callback interaction pattern for inter-object communications. Asynchronous services can be used, for example, in publish-subscribe systems that are provided by message-oriented middleware vendors or in system and device management domains.


WS-Notification services

Asynchronous services are standardized in the WS-Notification specifications:

You can test Web services and XML services that implement the WS-Notification specification by creating an asynchronous request inside a test. The asynchronous request contains the interfaces for the corresponding WS-Notification specification, along with a callback structure.


Proprietary asynchronous services

You can test proprietary asynchronous services that do not implement WS-Notification specifications.

To test these services, you manually create a service request containing the interfaces for the service, and then, you can add the asynchronous callback structure to the request.

The XML data of the asynchronous request must contain an endpoint that specifies the URL of the callback receiver. During the test, this endpoint is used to redirect the callback to the tester instead of the real receiver.


Callback structure

To test asynchronous services, create an asynchronous request structure in your test

A Web service request or a plain XML request provides the subscription action and contains a callback element, which describes the behavior of the test in three states:

When eachthing contained in the parallel, receive, and timeout elements have finished running, the run continues with the next element in the test after the asynchronous request. The method for generating the asynchronous callback structure in the test depends on whether the asynchronous service uses the WS-Notification specification:


Related tasks

  • Create an asynchronous request structure
  • Add a service request
  • Add an asynchronous callback to a service request


    Related reference

  • Service callback details
  • Service parallel details
  • Service receive details
  • Service timeout details