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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Difference between Web Services and an API" Watch "Difference between Web Services and an API" New topic

Difference between Web Services and an API

Rajkumar Masanaiyan

Joined: Sep 17, 2011
Posts: 24
I was going through the SOA page in wikipedia and came cross the following snippet. The highlighted text below implies that SOA defines interfaces that are different from API. Can someone explain what API means in this context and provide an example or two?

SOA defines how to integrate widely disparate applications for a Web-based environment and uses multiple implementation platforms. Rather than defining an API, SOA defines the interface in terms of protocols and functionality

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15094

I think that in that particular context, with "API" they mean specific interfaces and / or classes as you would have in Java.

The text says that the interface is not defined as a set of Java interfaces and / or classes, but just in the form of a description of protocols and functionality. How these protocols and other functionality is implemented is not described in detail.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Difference between Web Services and an API
jQuery in Action, 3rd edition