+

Search Tips   |   Advanced Search


Add an asynchronous callback to a service request

To test a proprietary asynchronous service that does not implement the WS-Notification specification, you can add an asynchronous callback to a service request or XML request.

Manually create a Web service call or XML call that invokes the asynchronous service. The call must contain an endpoint that specifies the URL of the callback receiver. This endpoint is used to redirect the callback to the tester.

If the service implements the WS-Notification specification, create the asynchronous call structure with the Create New WS-Notification Request and Callback wizard instead. See Create an asynchronous request structure. To add an asynchronous callback to a service request:

  1. In the test editor, select a Web service or XML request, click Add, and then click Asynchronous Callback. The Create New Asynchronous Callback wizard opens.

  2. On the Select Callback Endpoint page, select the XML element of the request where the endpoint URL of the callback is located.

  3. If you have a Web Services Description Language (WSDL) file for the Web service, click Next. Otherwise, skip to step 5.

  4. On the Bind Message to WSDL Port page, select a port from the WSDL file. If the WSDL file for the service is not listed, click Add to add a WSDL file from the workspace or to import a WSDL file.

  5. Click Finish. This generates a callback structure containing a parallel, a receive, and a timeout element, in the test editor.


What to do next

In the callback structure, you can add test elements to the parallel, receive, and timeout elements to specify the behavior of the test:


Related

  • Asynchronous service testing overview


    Related tasks

  • Create an asynchronous request structure
  • Add a service request


    Related reference

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