
A SOAP API is a web service that exchanges messages in a strict XML format called an envelope, usually over HTTP. SOAP stands for Simple Object Access Protocol. It is older and heavier than REST, but it is still running inside banks, insurers, shipping carriers, CRMs and government systems, so many business integrations still have to speak it.
We build and maintain integrations like these through our API development work. This guide explains how a SOAP message is built, how SOAP compares with REST, and when it still makes sense to use it.
How A SOAP API Message Is Structured
Every SOAP message is an XML document with the same parts, defined in the W3C SOAP 1.2 specification:
- Envelope: the root element that marks the document as a SOAP message.
- Header: optional details such as authentication tokens or transaction IDs.
- Body: the actual request or response data.
- Fault: an element inside the body that describes an error when something fails.
A short request looks like this:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header/>
<soap:Body>
<GetOrderStatus>
<OrderId>10452</OrderId>
</GetOrderStatus>
</soap:Body>
</soap:Envelope>What A WSDL File Does
Most SOAP services publish a WSDL (Web Services Description Language) file. It is a machine readable contract that lists every operation, the exact shape of each request and response, and the endpoint address. Developers feed the WSDL into a code generator and get a typed client, so both sides agree on the format before a single message is sent.
SOAP Vs REST
REST is the style most modern APIs use. It works over plain HTTP, usually sends JSON, and treats data as resources at URLs. The practical differences:
- Format: SOAP is always XML. REST is usually JSON, which is smaller and easier to read.
- Contract: SOAP has a formal WSDL. REST may have an OpenAPI document, but it is optional.
- Errors: SOAP returns a structured Fault. REST relies on HTTP status codes plus whatever body the API chooses.
- Security: SOAP can sign and encrypt the message itself with WS-Security. REST relies on HTTPS and tokens such as OAuth.
- Browser use: REST works naturally from a browser or app. SOAP is almost always called server to server.
For a new public API we almost always choose REST. SOAP is the right tool when the system on the other side already uses it.
Where SOAP Is Still Used
- CRM: Salesforce still offers a SOAP API alongside its REST API.
- Banking and payments: older core banking and payment gateways often expose SOAP endpoints.
- Shipping and logistics: carrier rating, label and tracking services have long histories of SOAP interfaces.
- Government and healthcare: many agency and insurance systems were built on SOAP and still accept it.
- Enterprise software: ERP and on premise business systems frequently integrate through SOAP.
When To Choose SOAP
Choose SOAP when you are integrating with a partner that requires it, when you need message level signing for compliance, or when a formal contract between teams matters more than speed of development. Choose REST for everything else, especially anything a website or mobile app calls directly.
Connecting A Modern Site To A SOAP Service
A common job for us is putting a fast modern front end on top of an old SOAP system. The usual pattern is a small server layer that calls the SOAP service, converts the XML into clean JSON, caches what it can, and exposes a simple REST endpoint to the website. Customers get a quick website or online store, and the legacy system keeps running untouched.
We use the same approach in custom software projects, and we compare front end frameworks for that layer in our post on Next.js vs React.
Need Help With A SOAP Integration?
We are based in Miami and work with businesses across the country, from New York to Los Angeles. You can see the integrations we have shipped in our portfolio. Tell us which system you need to connect, and we will tell you the simplest way to do it.
Need This Done For Your Business?
We build websites, apps and search campaigns for businesses across Florida and the US. Tell us what you need and get a fixed quote.





