SOAP-Dienste
SOAP-Dienste zum Testen von SOAP-Clients (SoapUI, Postman, WCF, zeep...). SOAP 1.1 (text/xml + SOAPAction) und SOAP 1.2 (application/soap+xml) werden angenommen; die Antwort nutzt dieselbe Version wie der Request. /api/soap/calculator: Add / Subtract / Multiply / Divide auf intA + intB (Namespace http://tempuri.org/), mit ?wsdl. /api/soap/countries: GetCountryInfo(countryCode) / ListCountries auf festen Daten. Fehler kommen als SOAP Faults zurück (1.1: immer 500; 1.2: Sender Faults 400, Receiver Faults 500).
- GET
https://api.testingapis.com/api/soap/calculatorGet the calculator WSDL (with?wsdl) or usage information. - POST
https://api.testingapis.com/api/soap/calculatorCall a calculator operation: Add, Subtract, Multiply or Divide. - GET
https://api.testingapis.com/api/soap/countriesGet the countries WSDL (with?wsdl) or usage information. - POST
https://api.testingapis.com/api/soap/countriesCall a countries operation: GetCountryInfo or ListCountries.
Beispiel-Request
Get the calculator WSDL (with ?wsdl) or usage information. Vollständige Referenz und Send-Button (auf Englisch).
cURL
curl -X GET "https://api.testingapis.com/api/soap/calculator"Antwort · 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…
}
}