SOAP 服务
用于测试 SOAP 客户端(SoapUI、Postman、WCF、zeep 等)的 SOAP 服务。接受 SOAP 1.1(text/xml + SOAPAction)和 SOAP 1.2(application/soap+xml),响应使用与请求相同的版本。/api/soap/calculator:对 intA + intB 做 Add / Subtract / Multiply / Divide(命名空间 http://tempuri.org/),提供 ?wsdl。/api/soap/countries:基于固定数据的 GetCountryInfo(countryCode) / ListCountries。错误以 SOAP Fault 返回(1.1:始终 500;1.2:Sender fault 400,Receiver fault 500)。用于测试 SOAP 客户端(SoapUI、Postman、WCF、zeep 等)的 SOAP 服务。接受 SOAP 1.1(text/xml + SOAPAction)和 SOAP 1.2(application/soap+xml),响应使用与请求相同的版本。… intA + intB 做 Add / Subtract / Multiply / Divide(命名空间 http://tempuri.org/),提供 ?wsdl。… GetCountryInfo(countryCode) / ListCountries。错误以 SOAP Fault 返回(1.1:始终 500;1.2:Sender fault 400,Receiver fault 500)。
你的账号已解锁这些端点。在每个端点的页面上用 Try it 发送请求。
- GET
https://api.testingapis.com/api/soap/calculatorGet the calculator WSDLGet the calculator WSDL (with?wsdl) or usage information. - POST
https://api.testingapis.com/api/soap/calculatorCall a calculator operationCall a calculator operation: Add, Subtract, Multiply or Divide. - GET
https://api.testingapis.com/api/soap/countriesGet the countries WSDL or usage informationGet the countries WSDL (with?wsdl) or usage information. - POST
https://api.testingapis.com/api/soap/countriesCall a countries operationCall a countries operation: GetCountryInfo or ListCountries.
请求示例
Get the calculator WSDL (with ?wsdl) or usage information. 完整参考和 Send 按钮(英文).
curl -X GET "https://api.testingapis.com/api/soap/calculator"{
"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…
}
}