# SOAP and Legacy Integrations

> Recognize SOAP, WSDL and XML-based APIs so you can integrate with older enterprise and government systems. Free notes, key concepts, resources and a mini...

Canonical: https://www.internhack.in/roadmaps/tracks/backend/soap-legacy-apis
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/backend/rest-api-design)

**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 `zeep` in Python or `soap` on 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](https://www.w3.org/TR/soap/) (W3C)
- [OWASP XXE Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html) (OWASP)

Previous: [gRPC and Protocol Buffers](https://www.internhack.in/roadmaps/tracks/backend/grpc) · Next: [Sessions and Cookies](https://www.internhack.in/roadmaps/tracks/backend/sessions-cookies)

## More in Designing and Documenting APIs

- [Resource-Oriented REST APIs](https://www.internhack.in/roadmaps/tracks/backend/rest-api-design)
- [Pagination, Versioning and Rate Limits](https://www.internhack.in/roadmaps/tracks/backend/api-evolution-and-limits)
- [API Contracts with OpenAPI](https://www.internhack.in/roadmaps/tracks/backend/openapi-docs)
- [GraphQL APIs](https://www.internhack.in/roadmaps/tracks/backend/graphql)
- [gRPC and Protocol Buffers](https://www.internhack.in/roadmaps/tracks/backend/grpc)
- [SOAP and Legacy Integrations](https://www.internhack.in/roadmaps/tracks/backend/soap-legacy-apis)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Backend Developer Roadmap](https://www.internhack.in/roadmaps/tracks/backend)
