+

Search Tips   |   Advanced Search


Create an asynchronous request structure

You can create an asynchronous request based on the WS-Notification specification, which contains an callback structure.

To create an asynchronous request in a test:

  1. In the test editor, select the test, and click Add, and then click Specification-based Structure. The New Web Service Test wizard opens.

  2. On the Web Services Specification Selection page, Select WS-Notification, and click Next.

  3. On the WS-Notification Details page, if the service has a Web Services Description Language (WSDL) file, click Add to associate it with the call.

  4. Specify the Subscription identifier. You can select default identifiers for Websphere Application Server or Apache Muse; or if service does not use a standard identifier, you can select Custom, and type the Name and Namespace of the identifier.

  5. In the Topic area, replace the default Name and Namespace values with those of topic of service.

  6. Specify the Subscription duration. Because this is a test environment, the subscription expires after the specified delay to save server resources.

  7. If this is a WS-BrokeredNotification service, which implements a notify call when the subscription is received, you can select Add notify call, and type the message to be sent.

  8. Click Next.

  9. On the Configure Protocol page, select a Protocol configuration, and specify the options of the configuration. Select Generate SOAP 1.2 envelope if you are testing a SOAP 1.2 Web service.

  10. Click Finish. This action generates in the test editor a Web service call or an XML request with a callback structure containing a parallel, a receive, and a timeout element.


What to do next

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


Related

  • Asynchronous service testing overview


    Related tasks

  • 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