Latest News from the Thunders Product Team
New feature

Test SOAP services from a WSDL

Ines avatar
Shared by Ines •

You can now test SOAP services in Thunders. Import the WSDL of a service on an API app, send an XML envelope from an API Call step, then check and extract the values of the XML response. You can chain SOAP calls the same way as REST calls, and SOAP and REST tests can be in the same project.

  • Import a WSDL: in the API spec section of an API app, drop your .wsdl files and the .xsd files that they import, or give a ?wsdl link in From URL. Each file can be up to 10 MB, and the files can be up to 50 MB in all.
  • Fill a step from an operation: when an API app of the project holds a WSDL, the API Call step shows an Operation picker. Pick an operation to set POST, the URL of the app, the SOAP headers and a sample envelope. To go back to the request that you wrote before, pick REST request.
  • Write the envelope: choose XML in the Body tab. Raw body holds the full envelope. Body lists each value of the envelope by its path, so you can change a value or put a variable such as [CONTRACT_ID] in it.
  • Check and extract XML values: assertions and extractions read the XML response with the same dot path as JSON, for example [API_RESPONSE_1].body.GetQuoteResponse.Price. Namespace prefixes and the Envelope and Body levels are left out. Use @name for an attribute and [n] for a repeated element. For a more precise query, use XPath: [API_RESPONSE_1].xpath://q:Price.
  • See SOAP Faults: a response with a SOAP Fault fails the step with a SOAP Fault bug report that gives the code and the reason. To test a fault on purpose, set Expected status to the status of the fault, for example 500, and assert [API_RESPONSE_1].fault.code.
  • Sign in with WS-Security: in the Authorization tab, choose WS-Security UsernameToken to add a username and a password to the SOAP header, with a Text or Digest password type. Use a variable for the password.

Thunders AI and the Thunders MCP can also read the operations of a WSDL app and write SOAP steps for you.

Thunders supports SOAP 1.1 and 1.2 services that a WSDL 1.1 describes. WSDL 2.0 is not supported. An API app holds an OpenAPI spec or a WSDL, not both, so put a REST API and a SOAP service on two apps. For a WSDL spec, endpoint coverage in the Endpoints section is not available yet.

#Sprint36