WSDL Formatter and Beautifier Online
Re-indent or minify WSDL (Web Services Description Language) documents in your browser. Only the whitespace between tags changes.
How to Format WSDL Documents - Step by Step Guide
Input Your WSDL Document
Start by entering your WSDL (Web Services Description Language) document that needs formatting:
Example: Unformatted WSDL Input
Here's what messy, unformatted WSDL looks like:
<?xml version="1.0"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://example.com/calculator"><types><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.com/calculator"><element name="AddRequest"><complexType><sequence><element name="a" type="int"/><element name="b" type="int"/></sequence></complexType></element></schema></types><message name="AddSoapIn"><part name="parameters" element="AddRequest"/></message><portType name="CalculatorSoap"><operation name="Add"><input message="AddSoapIn"/></operation></portType></definitions>
Automatic WSDL Formatting
The formatter automatically beautifies your WSDL document with proper XML structure! Since WSDL is XML-based, it gets:
Example: Beautifully Formatted WSDL Output
The same WSDL, now properly formatted and readable:
<?xml version="1.0"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://example.com/calculator"> <types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.com/calculator"> <element name="AddRequest"> <complexType> <sequence> <element name="a" type="int"/> <element name="b" type="int"/> </sequence> </complexType> </element> </schema> </types> <message name="AddSoapIn"> <part name="parameters" element="AddRequest"/> </message> <portType name="CalculatorSoap"> <operation name="Add"> <input message="AddSoapIn"/> </operation> </portType> </definitions>
Customize Formatting Options
Tailor the WSDL formatting to your preferences! Available options include:
Perfect for Web Services Development:
What is WSDL?
WSDL (Web Services Description Language) is an XML-based interface description language used to describe the functionality offered by web services. It provides a machine-readable description of how the service can be called, what parameters it expects, and what data structures it returns.
WSDL documents define the contract between service providers and consumers, specifying the operations available, message formats, data types, and communication protocols. Proper formatting makes WSDL documents easier to read, understand, and maintain for developers working with SOAP web services.
Frequently Asked Questions
How do I format a WSDL document?
Paste the WSDL into the left editor or upload a .wsdl, .xml or .txt file. The formatted version shows up on the right a moment after you stop typing. Each element goes on its own line, indented by 2, 4 or 8 spaces depending on the Indent setting. Only the whitespace between tags is touched: text, attribute values, comments, CDATA sections and entities like & come out exactly as you wrote them.
Can I format WSDL files from different web service frameworks?
Yes. WSDL produced by .NET WCF, Java JAX-WS, Apache CXF, Axis or a hand-written contract is all plain XML, so any well-formed WSDL 1.1 or 2.0 file works. Namespace prefixes such as wsdl:, soap:, soap12: and xsd: are left exactly where they are; nothing is renamed or moved to another element.
Does the formatter validate WSDL syntax?
It checks that the document is well-formed XML, using your browser's XML parser. If a tag is unclosed, a quote is missing or an & isn't escaped, you get the line, column and reason instead of output. It does not check WSDL rules, such as whether every message a portType refers to actually exists, and it doesn't validate against the WSDL schema.
To check XML on its own, try the XML validator.
Can I format large WSDL files with complex schemas?
Yes. Long <types> sections with nested complexType definitions, many operations and several bindings are fine. Everything runs in your browser, so the practical limit is your device. With multi-megabyte files the editor itself is what slows down, not the formatting.
Want to look through the definitions as rows instead? XML to Table shows the same file as a table.
Is the formatted WSDL ready for code generation tools?
Yes. Because only line breaks and indentation between tags change, svcutil, wsdl.exe, wsimport and CXF wsdl2java read the formatted file the same way as the original. Before showing a result the page parses its own output again and checks that every element is still there; if anything looks off, it shows a message and changes nothing.
Is the WSDL formatter free to use, and is my file uploaded?
It is free and needs no account. Your WSDL is formatted inside your browser and never sent to our server. Download saves the result as wsdl-formatted.wsdl, or wsdl-minified.xml after you press Minify.