SOAP and Legacy Integrations
Recognize SOAP, WSDL and XML-based APIs so you can integrate with older enterprise and government systems.
Intermediate · about 3 hours · difficulty 2/5
Learn first: Resource-Oriented REST APIs
SOAP is an XML-based messaging protocol that predates REST. Services describe themselves with a WSDL file, messages are wrapped in XML envelopes, and standards like WS-Security add signing and encryption. You will rarely build new SOAP services, but banks, payment networks, insurers, airlines and government systems still expose them.
What you need to know
- How to read a WSDL: services, operations, and message types.
- Using a client generator or library for your language (for example
zeepin Python orsoapon npm) instead of building XML by hand. - Handling XML namespaces, faults (SOAP's error format) and strict schemas.
Integration tips
- Wrap the SOAP client behind your own small interface so the rest of your code never sees XML.
- Log requests and responses (with secrets redacted); SOAP errors are often cryptic.
- Expect slow, rate-limited endpoints and add timeouts and retries.
Security note
XML parsers can be vulnerable to XXE (XML External Entity) attacks. Disable external entity resolution in any parser handling untrusted XML.
You are ready to move on when you can call a public SOAP test service from your language and map its response to a plain object.
Key concepts
- SOAP envelopes and faults
- WSDL
- Generated SOAP clients
- XXE protection
- WS-Security
Mini project
Write an adapter module that calls a public SOAP service (for example a country info or number conversion service) and exposes its result through one of your REST endpoints.
Check yourself
Why wrap a third-party SOAP client behind your own interface rather than calling it throughout your codebase?
Free resources
- W3C SOAP specifications (W3C)
- OWASP XXE Prevention Cheat Sheet (OWASP)