WebService
  1. WebService API
WebService
  • WebService API
    • WebService Example
      POST
    • SOAP Example
      POST
    • SOAP/WSDL Example
      POST
  1. WebService API

SOAP Example

Developing
Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
POST
http://www.dneonline.com/calculator.asmx
WebService Usage Tips
INFO
Apidog needs to be upgraded to version 2.1.31 or higher.
1.
Manually set the Header Content-Type value to text/xml; charset=utf-8 or application/soap+xml (depending on the actual situation).
2.
Set the Body format to xml.
3.
The format of the returned response content is XML.

Request

Header Params
Content-Type
string 
optional
Example:
text/xml
Body Params application/xml
object {0}
Example
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Add xmlns="http://tempuri.org/">
      <intA>5</intA>
      <intB>7</intB>
    </Add>
  </soap:Body>
</soap:Envelope>

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://www.dneonline.com/calculator.asmx' \
--header 'Content-Type: text/xml' \
--data-raw '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Add xmlns="http://tempuri.org/">
      <intA>5</intA>
      <intB>7</intB>
    </Add>
  </soap:Body>
</soap:Envelope>'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-09-15 01:34:55
Previous
WebService Example
Next
SOAP/WSDL Example
Built with