WSDL (Web Services Description Language) is an XML format that describes a SOAP web service: which operations it offers, what messages they exchange, which data types they use and where the service listens. Its significance is that it is a machine-readable contract. Tools read the WSDL and generate client code, server stubs and documentation, so two systems built by different teams or in different languages can integrate without guessing.
WSDL is still common in banking, insurance, government and enterprise integrations. New public APIs mostly use REST with OpenAPI, which plays a similar contract role.
A WSDL 1.1 document (the version used almost everywhere) separates the abstract interface from the concrete binding.
| Element | Purpose |
|---|---|
types | XML Schema definitions of the data exchanged |
message | The input and output messages of an operation |
portType | The abstract set of operations (the interface) |
binding | How the operations are carried: SOAP version, style, encoding |
service and port | The endpoint address where the service is available |
WSDL 2.0 renamed some parts (portType became interface, port became endpoint) and became a W3C Recommendation in 2007, but WSDL 1.1 remains the practical standard.
This contract defines a GetPrice operation that takes a product code and returns a price.
The document/literal style shown here is the recommended one. It is also the style that the WS-I Basic Profile favours for interoperability.
types lets messages be checked before processing.?wsdl suffix.Java EE's JAX-WS was moved to Jakarta XML Web Services (jakarta.xml.ws) and removed from the JDK in Java 11, so you add an implementation such as Apache CXF or the Metro reference implementation. With CXF, the wsdl2java tool generates the classes.
The generated client is then used like a normal Java class.
Other ecosystems have equivalent tools, such as svcutil and the WCF connected services in .NET, or the Zeep library in Python.
| Aspect | WSDL (SOAP) | OpenAPI (REST) |
|---|---|---|
| Format | XML | JSON or YAML |
| Style | Operations and messages | Resources and HTTP methods |
| Typing | XML Schema | JSON Schema |
| Standards for security and reliability | WS-Security, WS-ReliableMessaging | OAuth 2.0, HTTP-level features |
| Typical use | Enterprise and B2B integration | Public and mobile APIs |
Mostly. WSDL 1.1 has bindings for SOAP, and WSDL 2.0 added HTTP bindings, but SOAP is by far the main use.
Try the service URL with ?wsdl or ?singleWsdl, or ask the provider for the file. Some frameworks serve it automatically.
It is a legacy but still maintained technology. Existing integrations keep using it, while new systems usually choose REST, gRPC or GraphQL.
An XSD defines data types only. A WSDL uses XSD for types and also defines operations, bindings and endpoints.
WSDL is the formal, machine-readable contract of a SOAP web service. It describes types, messages, operations, bindings and endpoints in one XML file, which enables code generation, validation and tooling. You will meet it in enterprise integrations, while new APIs more often use OpenAPI.