WSDL to JSON Converter
Paste WSDL service definitions and instantly extract operations, messages, and types as JSON
Paste a WSDL file and get structured JSON back — operations, messages, types, service names, all pulled out of the XML mess in one click. Works with both WSDL 1.1 and 2.0, strips namespace prefixes automatically, and gives you a clean .json download. And everything runs in your browser. Nothing gets uploaded.
How It Works
Your browser's built-in DOMParser reads the WSDL XML, walks the tree to find services, port types, operations, messages, and schema types, then maps each element into a JSON object. Namespace prefixes get stripped if you toggle that option on. The whole thing takes milliseconds — no external libraries needed.
Examples
Simple Weather Service
A basic SOAP service with one operation — the kind you'd find in a tutorial or legacy internal tool.
<definitions name="WeatherService">
<portType name="WeatherPort">
<operation name="GetForecast">
<input message="GetForecastReq"/>
<output message="GetForecastResp"/>
</operation>
</portType>
</definitions>
{
"service": "WeatherService",
"operations": [
{
"name": "GetForecast",
"input": "GetForecastReq",
"output": "GetForecastResp"
}
]
}
Multi-Operation Payment Gateway
Real-world WSDL files usually expose several operations. Here is a payment service with three endpoints and typed messages.
<wsdl:definitions name="PaymentGateway">
<wsdl:message name="ChargeReq">
<wsdl:part name="amount" type="xsd:decimal"/>
<wsdl:part name="currency" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="PaymentPort">
<wsdl:operation name="Charge">...</wsdl:operation>
<wsdl:operation name="Refund">...</wsdl:operation>
<wsdl:operation name="Status">...</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
{
"service": "PaymentGateway",
"operations": [
{ "name": "Charge" },
{ "name": "Refund" },
{ "name": "Status" }
],
"messages": [
{
"name": "ChargeReq",
"parts": [
{ "name": "amount", "type": "decimal" },
{ "name": "currency", "type": "string" }
]
}
]
}
WSDL 2.0 Inventory Service
WSDL 2.0 uses different tags — description instead of definitions, interface instead of portType. The converter detects the version automatically.
<description
targetNamespace="urn:inventory">
<interface name="InventoryIF">
<operation name="CheckStock"
pattern="in-out">
<input element="tns:StockReq"/>
<output element="tns:StockResp"/>
</operation>
</interface>
</description>
{
"service": "InventoryIF",
"operations": [
{
"name": "CheckStock",
"pattern": "in-out",
"input": "StockReq",
"output": "StockResp"
}
]
}
Who Uses This
Extracting SOAP endpoint details to build REST wrappers or API documentation.
Mapping WSDL operations to JSON configs for middleware and ESB platforms.
Pulling operation names and message types to create test cases for SOAP services.
Converting service definitions into readable JSON for API reference docs.
Common Mistakes
If you paste just the portType without the surrounding <definitions> root element, the parser can't build a valid XML tree. Always include the full document from the opening <definitions> tag to the closing one.
With "Strip namespaces" turned off, you get keys like "wsdl:operation" and "xs:element" in your JSON. That is valid, but most downstream tools don't expect colons in property names. Toggle the strip option on unless you specifically need the prefixes.
This converter focuses on operations, messages, and types — the logical contract. SOAP binding details (like transport URLs and encoding styles) are not extracted. If you need those, check the raw WSDL's <binding> and <service><port> sections directly.
Technical Details
- Processing: 100% client-side — uses the browser's native DOMParser API
- WSDL Versions: Supports WSDL 1.1 and basic WSDL 2.0
- Output Format: Standard JSON with configurable 2-space or 4-space indentation
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Size: Limited only by browser memory — tested up to 5 MB WSDL files
Frequently Asked Questions
What is WSDL and why would I convert it to JSON?
WSDL stands for Web Services Description Language. It's an XML format that describes what a SOAP web service does — its operations, inputs, and outputs. Converting it to JSON makes the data much easier to read and work with in modern JavaScript apps, REST APIs, or any tool that prefers JSON over XML.
Can I convert a WSDL URL directly?
Not directly from this tool — you need to paste the WSDL content. Open the WSDL URL in your browser first (most return raw XML), copy everything, then paste it here. This keeps your data local since fetching remote URLs would require a server.
What's the difference between WSDL 1.1 and WSDL 2.0?
WSDL 1.1 uses <definitions> as the root element with <portType> and <message> elements. WSDL 2.0 switched to <description> as the root and replaced portType with <interface>. The converter detects which version you are using and parses accordingly. Most WSDL files out there are still 1.1.
Does stripping namespaces lose any information?
It removes the prefix text before the colon (like "wsdl:" or "xs:"), not the actual element data. You lose the ability to tell which XML namespace an element belongs to, but for most use cases — documentation, config generation, quick inspection — that does not matter. Keep it off if namespace tracking is critical for your workflow.
Is my WSDL data sent to a server?
No. Zero network requests happen during conversion. Your browser's DOMParser handles everything locally. You can disconnect from the internet and the tool still works — try it. Nothing is uploaded, logged, or cached on any server.