SOAP and WSDL
Resources
- https://www.w3schools.com/xml/xml_wsdl.asp
- https://www.tutorialworks.com/wsdl/
Tools
- Useful tools SoapUI
Tips and Tricks
- On servers running Windows Communication Foundation (WCF) services, which is also SOAP based, you see a message like this:
<p class="heading1">Service</p> <p>Endpoint not found.</p>
Commonly used headers (for curl)
-H "Content-Type: application/soap+xml"
-H 'Content-Type: text/xml'
-H 'SOAPAction: service:getSomething'
Examples
- Download WSDL spec
curl -o service.wsdl https://site/dir/service?wsdl
- Grep
schemaLocation
to get the XSD file locations to check if they are present ```sh $ grep schemaLocation service.wsdl
* download the XSD-Files:
curl -o service.xsd https://site/dir/service?xsd=service.xsd
* cURL SOAP request
curl -X POST http://site/dir/service
-H ‘Content-Type: text/xml’
-H ‘SOAPAction: service:getSomething’
-d ‘