Use the same API authentication configurations with SOAP APIs as you would for REST APIs. The request is different in a few ways:
- Use the SOAP endpoint as the URL of the request. If you are using WSDL, then you must give the path to the WSDL inside the URL.
- SOAP endpoints respond to POST requests, so change the request method to POST
- Add the header 'Content-Type' = 'text/xml'
Note: If you are reaching a SOAP 1.1 service then you will also need to include a SOAPAction HTTP header field
- In the body, change the body type to "Raw" and then define the SOAP request.
- Consult your API specification for the headers required. The name of the SOAP method is usually specified in the SOAP body, but sometimes it may be specified in the header.
Updated 2 months ago