Inserting Web Services Requests

The AgileLoad "Insert Web Service Request" features allows to test your web services starting from their WSDL description. Select the "Tools/Insert Web Service Request" menu or toolbar icon . The "Insert Web Service Request" window is opened:

Browsing a WSDL file

To browse a WSDL file:

The web service methods described in the WSDL file are listed in the "Web Service Methods" tree view.

Creating a Scenario

A scenario is composed of methods which can come from different web services (WSDL files). To insert a web service method in a scenario:

For each method contained in the scenario, you can:

Mandatory parameters

Some parameters are mandatory. Their associated value cannot be empty. They are flagged with the "!" icon.

Array parameters

Array parameters are displayed with the following format "<ParameterName>[]".
To insert an array item:

  1. Select the array parameter,

  2. Right click and select "Add item" in the contextual menu,

  3. A new array item is inserted:

Choice parameters

The "Choice" type is a complex type consisting of a series of element definitions from which one may be selected to include in a message instance.

When you select an element, the previously selected element is unselected.
 

Deriving types

If a complex type "Boat" inherits from a complex type "vehicle" and a webservice method "SetVehicle" has an argument of type "vehicle", the "Insert Web Service Request" features allows to replace the "vehicle" type by the "Boat" type.

Deriving types are displayed with the following format "<ParameterName>{}".

To change a parameter type,

  1. select the parameter,

  2. right click and select a new type in the opened menu,

  3. the selected type is displayed in the tree view.

Editing Input parameters

For each method, input parameters are listed under the "Input" node. Only the parameters which are selected (check box located at the left side of the parameter name) will be inserted in the Soap request.


To associate a value or a variable with an input parameter:

  1. Select the parameter and use the bottom part of the scenario view to associate a value or a variable to it:

  2. Select the "Value" option to associate a value with the parameter. Specify a value in the "Value" field or use the   button to generate a value.

    Select the "Variable" option to associate a variable with the parameter. Specify a new variable name or select an existing one in the drop-down list.

When you select the "Add" button, the specified input values are inserted in the Http Soap request:


 

To automatically associate a value with each parameter, click the "Generate values for all" icon.

Editing Output parameters

For each method, output parameters are listed under the "Output" node:

Associating a variable to an output parameter will allow to check if the web service method works correctly.

To associate a variable with an output parameter:

  1. Select the parameter and use the bottom part of the scenario view to associate a variable with it:

  2. Specify a new variable name or select an existing one in the drop-down list.

When you select the "Add" button, a parsing function is inserted in the Http Soap Request in order to retrieve the method output parameter value.

Editing the SOAP Header

The optional SOAP Header element contains application specific information (like authentication, payment, etc) about the SOAP message.

To edit the SOAP header:

  1. select the "Header" node and click "Edit XML..." in the bottom part of the scenario view


     
  2. Enter the SOAP header in the opened text editor or click "Import..." to load it from an external file.


     
  3. Click "OK" to validate.

When you select the "Add" button, the Soap header is inserted in the Http Soap Request.

 

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap