SOAP Envelope Builder
Fill in a namespace, method name and parameters to generate a valid SOAP 1.1 or 1.2 envelope.
What is SOAP Builder?
A SOAP request builder. The envelope is a small, fussy document: the version decides the namespace, the namespace decides the prefix, and the action goes in an HTTP header for 1.1 but in the Content-Type for 1.2. Getting it right by hand is tedious and getting it wrong returns an unhelpful fault.
How it works
The envelope namespace and prefix follow the version you pick, the target namespace becomes tns: on the operation, and header and body entries are written with their values escaped. Parameters can declare an xsi:type. SOAP 1.1 output shows the SOAPAction header line to send, SOAP 1.2 shows the Content-Type parameter instead, and invalid element names or a missing target namespace are reported before you copy the result.
- Paste the document. Drop in XML, a schema, a feed or an XPath expression. Everything is parsed in the page: no upload, no server round trip, and the tools keep working with the network switched off.
- Set the options that match your document. Indent unit, whether to keep comments, which dialect, which output method. The defaults are the safe ones — nothing that changes meaning is enabled for you.
- Read the result, then copy or download it. Results appear as you type, copy straight to the clipboard, and download with a sensible filename (.xml, .xsd, .csv). Reset returns every field to its default.
Examples
A minified document from an API response
Paste one line of XML and the Formatter indents it, wraps long start tags one attribute per line and normalises empty elements — without touching text inside mixed content.
An XPath that works in Chrome and not in your servlet
The XPath Tester evaluates against a real tree and reports the axis or function it cannot support, instead of returning zero nodes and letting you guess why.
A document that will not parse
The Validator gives line and column for every mismatched tag, stray ampersand and duplicate attribute, with the reason in words: which open element was expected, which was found.
A schema that only half matches your data
The XSD Validator marks each violation with the path of the offending node, and the Schema Generator goes the other way — inferring a starting-point XSD from real documents.
Common mistakes
Assuming a pretty-printer cannot change meaning
Whitespace between elements is often insignificant, but inside mixed content it is not: `<p>Hello <b>world</b></p>` must stay on one line. Formatting here re-indents element-only content and leaves mixed content alone.
Treating a validation pass as proof of interoperability
The DTD and XSD validators implement honest subsets. A document reported valid here can still be rejected by a full validator that understands identity constraints, substitution groups or XSD 1.1 assertions — each page lists what it does not cover.
Reading the whole document because the parser did
A DOCTYPE is not inert. If your parser resolves external entities, pasting an untrusted document is enough to read a file or call an internal URL. The XXE Risk Checker shows what a document asks for; the fix is in the parser configuration.
Forgetting that attributes and elements are not interchangeable
`<id>1</id>` and `id="1"` mean different things to every schema and every XPath. When converting to CSV or YAML the distinction is preserved (`@id`), because flattening it away is the change that costs an afternoon later.
Frequently asked questions
Where does SOAPAction actually go?
In SOAP 1.1 it is an HTTP header, `SOAPAction: "…"`. In SOAP 1.2 it becomes a parameter of the Content-Type header, `application/soap+xml; action="…"`. It never goes in the envelope, which is a mistake services report as an unhelpful fault.
Why is my call rejected for a missing operation?
Almost always the target namespace. Without tns: the operation element is in no namespace while the service expects the namespace from its WSDL, so the dispatcher cannot find the method. Copy the WSDL's targetNamespace rather than typing one.
Do I need WS-Security headers?
Only if the service says so — some require a username token, others use TLS client certificates or an API key in a plain header. The tool adds a header block when you want one, but it does not generate signatures or timestamps, which belong in your SOAP library.