Webservice and its implementation using Java and Glassfish Application Server

What is a Web Service?
  • Web service is a method of communication between two electronic devices over a network.
  • web service is any piece of software that makes itself available over the internet and uses a standardized XML messaging system.
  • Web services describes a standardized way of integrating Web-based applications using open standards over an Internet protocol backbone.
  • A Web service basically is a collection of open protocols that is used to exchange data between applications. The use of open protocols enables Web services to be platform independent.
Difference between Web Service and Website?
  • Web services are for machine/program to machine/program communication whereas Web application is for Users.
  • Web applications present data in HTML to the user and web services usually present data in XML which easy to parse by other applications.
  • User must visit a website but web service can be accessed from anywhere.
  • Web services are services with standard interfaces that just expose a behavior. Web applications are full blown browser-based applications that also include an interface.
  • Web services are granular (specific well-defined functions). Web applications are complete holistic functions that are bound into a single application.
Why use a Web Service?
  • Web services allow various applications to talk to each other and share data and services among themselves.
  • Security can be enforced as web service access database not the user.
  • Underlying function implementation can be changed without user needing to change accessing method.
  • Web Services allow the appropriate authentication/authorization measures to be taken thus allowing access to eligible and appropriate user only.
  • Web services can make it easier to manage and maintain your legacy application assets. For example, AT&T estimates that Web services technology has reduced the time it takes to make modifications to some of its oldest application systems by 78 percent.
XML


  • XML stands for Extensible Markup Language. XML was designed to describe data.
  • XML is a software- and hardware-independent tool for carrying information.
  • Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format which is both human-readable and machine-readable.
  • XML Web Services expose useful functionality to Web users through a standard Web protocol. In most cases, the protocol used is SOAP.
  • XML Web services provide a way to describe their interfaces in enough detail to allow a user to build a client application to talk to them.

Comments

Popular posts from this blog

Java Interview : Threads

Spring Framework Interview Notes : Part Two Wiring

Card Dealer In Java in Less than 5 minutes