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 the calculator WSDL (with ?wsdl) or usage information. 完整参考和 Send 按钮(英文).

cURL
curl -X GET "https://api.testingapis.com/api/soap/calculator"
响应 · 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…
  }
}

登录后查看详情

这些端点的参数、请求和响应示例以及实时 Try it 面板仅对已登录的成员开放。账号免费,几秒钟就能创建。