How to Use Apidog to Write SOAP API Documentation
Step 1: Create a New Project
Step 2: Add a SOAP Endpoint
https://api.example.com/soap-service
).Step 3: Configure XML for SOAP Requests
1.
Content-Type
header with value text/xml
(or application/soap+xml
for SOAP 1.2).SOAPAction
if your service requires it (e.g., SOAPAction: getUserDetails
).2.
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ex="http://example.com/ns">
<soapenv:Header/>
<soapenv:Body>
<ex:getUserDetails>
<ex:userId>123</ex:userId>
</ex:getUserDetails>
</soapenv:Body>
</soapenv:Envelope>
Step 4: Use Apidog’s XML Schema Settings for Validation
1.
2.
soapenv
or ex
and their URIs.userId
as an integer inside getUserDetails
).status="pending"
.Step 5: Test and Validate SOAP Responses
1.
2.
email
is a string).<name>
tag).