Format Code Now
/
ConvertWSDL to JSON Converter Next: XML to HTML Converter ›

WSDL to JSON Converter

CV-70

Paste a WSDL and get JSON of the whole document, or a short summary of its services, port types, bindings and messages.

Runs in your browser. Nothing is uploaded.

WSDL (XML)

JSON

How to use it

  1. Paste the WSDL XML into the input box, or open the file and drop it on the box.
  2. Choose Convert for the whole document or Operations summary for the short view.
  3. Pick the indent, and turn on Keep namespace prefixes if you need them.
  4. Copy the JSON or download it as a .json file.

Convert: the whole document

Convert maps the XML to JSON with the usual rules. Attributes become keys that start with @, text goes under #text, repeated elements become arrays and all values are text. Namespace declarations are dropped and prefixes removed from names unless you keep them. It accepts a WSDL 1.1 definitions root or a WSDL 2.0 description root. Schemas inside the types element are converted like any other XML, not interpreted.

Operations summary

The summary lists, for WSDL 1.1, each service with its ports and addresses, each port type with its operations and the input, output and fault message names, each binding with its style, transport and soapAction, and each message with its parts. Names are copied as written, including prefixes such as tns:. This is the view that answers what operations does this service offer, without wading through the schema.

Limits

Nothing is fetched: imports and referenced schemas are not followed, and message types are not resolved to their definitions. The summary does not read WSDL 2.0, and tells you so; use Convert for those files. The XML must be well formed, and errors give the line and column. The tool does not call the service or validate the WSDL.

Error messages and what to do

MessageWhat it meansFix
The root element is <rss>, not a WSDL <definitions> (WSDL 1.1) or <description> (WSDL 2.0).The XML is not a WSDL; this example shows an RSS root.Paste a WSDL, which starts with a definitions or description element.
This is a WSDL 2.0 document. The summary reads WSDL 1.1 (<definitions>); use Convert to get the full document as JSON.Operations summary was chosen for a WSDL 2.0 file.Use the Convert action for WSDL 2.0.

Questions people ask

How do I convert a WSDL to JSON?

Paste the WSDL and choose Convert. The whole document comes out as JSON. Choose Operations summary instead to get just the services, operations and messages.

Can it list the operations in a WSDL?

Yes, with Operations summary. It lists each port type operation with its input and output messages and the soapAction from the binding. Copy the result or download it with the buttons above the output.

Does it follow imports or load the schema?

No. Nothing is fetched. If your WSDL imports other files, paste them one at a time, or inline them first. Everything runs in the page, so you can test with real data.

Does it support WSDL 2.0?

Convert does, because it only needs well formed XML with a description root. The summary only reads WSDL 1.1 and says so for 2.0 files.

Why are namespace prefixes missing?

They are removed from element and attribute names by default to make the JSON easier to read. Turn on Keep namespace prefixes to leave them in.

About this tool

Convert turns the whole WSDL into JSON with the XML to JSON rules: attributes become keys that start with @, text goes under #text, repeated elements become arrays, and every value is text. Namespace declarations (xmlns) are dropped and prefixes are removed from names unless you keep them. It accepts a WSDL 1.1 <definitions> root or a WSDL 2.0 <description> root. Operations summary is a shorter view of WSDL 1.1 only: services with their ports and addresses, port types with each operation and its input, output and fault message names, bindings with style, transport and soapAction, and messages with their parts. Names are copied as written, including prefixes such as tns:. The types section, imports and schemas are not resolved or followed, and the summary does not read WSDL 2.0. Nothing is fetched from the network.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.