New in 2.4: Test runs you can trust See what's new →

Serviços SOAP

Serviços SOAP para testar clientes SOAP (SoapUI, Postman, WCF, zeep...). SOAP 1.1 (text/xml + SOAPAction) e SOAP 1.2 (application/soap+xml) são aceitos; a resposta usa a mesma versão da requisição. /api/soap/calculator: Add / Subtract / Multiply / Divide sobre intA + intB (namespace http://tempuri.org/), com ?wsdl disponível. /api/soap/countries: GetCountryInfo(countryCode) / ListCountries sobre dados fixos. Os erros voltam como SOAP Faults (1.1: sempre 500; 1.2: Sender faults 400, Receiver faults 500).

Requisição de exemplo

Get the calculator WSDL (with ?wsdl) or usage information. Referência completa e botão Send (em inglês).

cURL
curl -X GET "https://api.testingapis.com/api/soap/calculator"
Executar no Studio
Resposta · 200 OK
{
  "service": "Calculator",
  "wsdl": "https://api.testingapis.com/api/soap/calculator?wsdl",
  "operations": ["Add", "Subtract", "… 2 more items"],
  "soap11": {
    "contentType": "text/xml; charset=utf-8",
    "soapAction": "http://tempuri.org/Add",
    "sample": "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><Add xmlns=\"http://tempuri.org/\"><intA>5</intA><in…
  },
  "soap12": {
    "contentType": "application/soap+xml; charset=utf-8",
    "sample": "<soap:Envelope xmlns:soap=\http://www.w3.org/2003/05/soap-envelope\><soap:Body><Add xmlns=\http://tempuri.org/\><intA>5</intA><intB…
  }
}