Applies to ReadyAPI 2.4, last modified on June 7, 2018

To send a SOAP request, create an object in the JSON testSteps array with the type, wsdl, binding and operation properties:

  • type should be SOAP Request.

  • wsdl should specify the URL of your server wsdl definition.

  • binding and operation should specify the binding and operation you intend to use.

To add parameters to the request, create the parameters array. Each array item should have the name and value items. ReadyAPI TestServer finds a required XML node based on the name item and specifies its value based on the value item. You can specify the path to the node you need by using the XPath in the optional path item.

If you want to specify the custom endpoint, add the URL item after specifying wsdl.

To add SOAP-specific assertions, create the assertions array. SOAP assertions do not require parameters, so you only need to specify the type. You can create the Schema Compliance, SOAP Fault, and Not SOAP Fault assertions this way. For more information about creating assertions, see Recipe With Assertions.

Here is what a simple SOAP recipe may look like:

{
  "testSteps": [
    {
      "type": "SOAP Request",
      "wsdl": "http://www.webservicex.net/globalweather.asmx?WSDL",
      "binding": "GlobalWeatherSoap",
      "operation": "GetCitiesByCountry",
      "parameters": [
      {
        "name": "CountryName",
        "value": "Sweden"
      }
      ]
    }
    ]
}

See Also

TestServer REST API
REST GET Recipe
Text-Based Recipes

Highlight search results