DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Low-Code Development: Leverage low and no code to streamline your workflow so that you can focus on higher priorities.

DZone Security Research: Tell us your top security strategies in 2024, influence our research, and enter for a chance to win $!

Launch your software development career: Dive head first into the SDLC and learn how to build high-quality software and teams.

Open Source Migration Practices and Patterns: Explore key traits of migrating open-source software and its impact on software development.

Related

  • What Is API-First?
  • MuleSoft Integrate With ServiceNow
  • How to Seamlessly Integrate Data Into NetSuite
  • Commonly Occurring Errors in Microsoft Graph Integrations and How To Troubleshoot Them (Part 4)

Trending

  • Mastering System Design: A Comprehensive Guide to System Scaling for Millions, Part 2
  • Data Governance: Data Integration (Part 4)
  • GenAI: Spring Boot Integration With LocalAI for Code Conversion
  • How To Compare DOCX Documents in Java
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. WSDL vs REST/JSON — The Troll Fight

WSDL vs REST/JSON — The Troll Fight

Long live REST/JSON!

By 
Thomas Jardinet user avatar
Thomas Jardinet
DZone Core CORE ·
Nov. 25, 19 · Opinion
Like (10)
Save
Tweet
Share
16.9K Views

Join the DZone community and get the full member experience.

Join For Free

For many years, I have known integration via WSDL, only to see the REST/JSON trend appear with false good reasons and real unknown reasons. 

Contrôle, Gnome, Troll, Créatures Mythiques

WSDL vs REST/JSON — The Troll Fight

Why so Much Hate on WSDL?

WSDL offers a very strict interface contract, where any failure to comply with this contract generates errors. This means that when you want to add a field, if one of the two integration stakeholders has integrated the new field "too early," nothing works anymore. Of course, that's when your WSDL library is the same on both sides because how many times could we not integrate anything because we had two different engines on both sides? I'll let you imagine the meetings when we had to find a solution...

You might also like:  Understanding WSDL

So, of course, we found ourselves rereading the WSDL, and that was the tragedy because the WSDL is completely unreadable. XML, for which you have to define types, operations, namespaces, and then you could hope to start understanding..in XML...very verbose. Oh yes, all defined in the end in several files. Good luck with that.

Why Did REST/JSON Appear?

Not being a computer historian, I can't explain what the exact trigger for REST/JSON's fashion would be, but its gain in popularity is quite correlated with the popularization of the smartphone. Indeed, the size ratio between JSON and WSDL is quite high, which allows a faster response time on networks that can be slow. But it is also the awareness of the ease and flexibility that REST/JSON brings.

Another reason, for me, and this is not very well said, is the rise of agility. Indeed, as described above, if an actor makes a modification in a WSDL, then nothing works anymore. The WSDL is based on waterfall methods, where it is necessary to contract in advance of the phase to carry out tests at the end of all developments. On the other hand, JSON allows supporting modifications as they happen, leaving each team time to implement this damn new field.

Conclusion

In short, it has become anachronistic in my opinion to use the WSDL. Need for agility, understanding, flexibility, readability, and performance. There are no true good reasons to use WSDL anymore! The only case where the use of WSDL still makes sense is where the integration is between two companies and is subject to a strong legal contract in terms of commitment — to protect themselves. In other words, it is a weak argument, which will not remove you from the difficulties inherent to the WSDL.

Long live REST/JSON!

Further Reading

Designing REST API — What Is Contract First?

Integration JSON REST Web Protocols Ease (programming language) teams Testing Interface (computing) SOAP Data Types

Opinions expressed by DZone contributors are their own.

Related

  • What Is API-First?
  • MuleSoft Integrate With ServiceNow
  • How to Seamlessly Integrate Data Into NetSuite
  • Commonly Occurring Errors in Microsoft Graph Integrations and How To Troubleshoot Them (Part 4)

Partner Resources


Comments

ABOUT US

  • About DZone
  • Send feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: