File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes WSDL AND API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL AND API" Watch "WSDL AND API" New topic


Sam Ruben

Joined: Feb 07, 2012
Posts: 9
what is api and wsdl? how they are related?

whats the purpose of using it?
Roger Sterling
Ranch Hand

Joined: Apr 06, 2012
Posts: 426

They perform much the same function. A WSDL (Web Service Definition Language file) is a file or set of files that describe a contract between a producer of a Web Service and a consumer of a Web Service. An API (Application Programming Interface) is a contract between a producer and consumer of a local software library. API is limited to the local system. WSDL can be used locally or remotely.
I agree. Here's the link:
subject: WSDL AND API
jQuery in Action, 3rd edition