What is SOAP?
SOAP — Simple Object Access Protocol — is an XML-based messaging protocol for exchanging structured information between web services. A SOAP message is a single XML document called an envelope, transported over HTTP, JMS, or SMTP. SOAP predates REST and is still common in enterprise integrations, banking, healthcare (HL7), telecom OSS/BSS, and government tax-filing systems.
How is a SOAP envelope structured?
Every SOAP message wraps its content in a single root <soap:Envelope> element. The envelope contains an optional <soap:Header> for cross-cutting metadata (authentication, transaction IDs, message IDs, addressing) and a required <soap:Body> with the actual request, response, or Fault payload. The Header is processed by SOAP intermediaries; the Body is the application-level data.
Will the formatter preserve xmlns:soap and xmlns:soapenv prefixes?
Yes. Both the SOAP 1.1 prefix (xmlns:soapenv pointing to schemas.xmlsoap.org/soap/envelope) and the SOAP 1.2 prefix (xmlns:soap pointing to www.w3.org/2003/05/soap-envelope) are preserved exactly as they appear on the source. Custom prefixes (xmlns:wsa for WS-Addressing, xmlns:wsse for WS-Security, business namespaces) are likewise untouched. The DOMParser is namespace-aware and round-trip-safe.
Can I format both request and response messages?
Yes. SOAP requests, responses, and Fault messages all share the same envelope structure — the formatter handles them identically. Paste a request captured from a curl trace, a response logged by a SOAP gateway, or a SOAP Fault returned during error debugging. The formatter indents the envelope, headers, body elements, and any nested faultcode/faultstring/detail blocks for readable diff and review.
How does SOAP differ from REST/JSON?
REST uses HTTP verbs (GET, POST, PUT, DELETE) on resource URLs and typically carries JSON. SOAP exchanges XML envelopes — almost always over HTTP POST — described by a WSDL contract. SOAP standardises features REST leaves to convention: WS-Security for message-level signing, WS-ReliableMessaging for guaranteed delivery, WS-Addressing for routing. That extra ceremony is overkill for a typical web API but exactly what regulated enterprises need.
Does formatting change the SOAP message semantics?
No. SOAP processors parse the XML structure, not whitespace. An indented envelope and a one-line envelope produce identical results when consumed by Apache CXF, Spring-WS, .NET WCF, zeep, or PHP SoapClient. The formatter is a pure readability transform — useful for debugging, code review, and documentation, but never required for the message to deliver.
Can I format a SOAP Fault?
Yes — SOAP Faults are just envelopes with <soap:Fault> as the body content, holding faultcode, faultstring, faultactor, and detail children. Formatting makes the Fault readable so you can quickly diagnose whether it's a Client, Server, MustUnderstand, or VersionMismatch fault, and read the detail element to find the application-specific error.
Are SOAP messages with WS-Security headers safe to paste?
Yes — and that's the point of client-side formatting. WS-Security headers carry signed timestamps, encrypted UsernameTokens, BinarySecurityTokens, and certificate references. The formatter runs entirely in your browser using the native DOMParser; nothing is uploaded. Verify with DevTools Network — zero requests fire when you click Format. That guarantee matters when the captured traffic includes credentials.