Web service
|
A web service is a collection of protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer. This interoperability (e.g., between Java and Python, or Windows and Linux applications) is due to the use of open standards. OASIS and the W3C are the steering committees responsible for the architecture and standardization of web services. To improve interoperability between web service implementations, the WS-I organisation has been developing a series of profiles to further define the standards involved.
Contents |
Standards used
- Web Services Protocol Stack: The standards and protocols used to implement a web service, considered as a protocol stack.
- XML: All data to be exchanged is formatted with XML tags. The encoded message is transmitted through a transport protocol such as SOAP, JAX-RPC, or XML-RPC (note: early industry standards for web-services security, interoperability, were advanced considerably in the development of SOAP). The JAX-RPC protocol also calls functions remotely (hence, remote procedure call).
- Common protocols: data can be transported between applications using common protocols such as HTTP, FTP, SMTP and XMPP.
- WSDL: The public interface to the web service is described by Web Services Description Language, or WSDL. This is an XML-based service description on how to communicate using the web service.
- UDDI: The web service information is published using this protocol. It should enable applications to look up web services information in order to determine whether to use them.
- WS-Security: The Web Services Security protocol has been accepted as an OASIS standard. The standard allows authentication of actors and confidentiality of the messages sent.
Advantages of web services
- Web services provide interoperability between various software applications running on disparate platforms.
- Web services use open standards and protocols. Protocols and data formats are text-based where possible, making it easy for developers to comprehend.
- By utilizing HTTP, web services can work through many common firewall security measures without requiring changes to the firewall filtering rules.
- Web services easily allow software and services from different companies and locations to be combined easily to provide an integrated service.
- Web services allow the reuse of services and components within an infrastructure.
Disadvantages of web services
- Web services standards for features such as transactions are currently nonexistent or still in their infancy compared to more mature distributed computing open standards such as CORBA.
- Web services suffer from poor performance compared to other distributed computing approaches such as RMI, CORBA, or DCOM. This is a common trade-off when choosing text-based formats. XML explicitly does not count among its design goals either conciseness of encoding or efficiency of parsing.
- By utilizing HTTP, web services can evade existing firewall security measures whose rules are intended to block or audit communication between programs on either side of the firewall.
Reasons for creating web services
The main reason web services are used seems to be that they rely on HTTP over TCP port 80. To understand this, keep in mind that many enterprises have protected themselves (see computer security) by using firewalls that filter and block much Internet traffic for security reasons. In this environment, typically many (almost all) ports are closed to incoming and outgoing traffic, and the administrators of these firewalls are not eager to open them up. Port 80, however, is always open because it is used for web browsers. Web services tunnel everything through port 80, making the technology very appealing.
Another reason may be that prior to SOAP, there were no really good interfaces to accessing functionality on different computers on a network. Most of them were ad hoc, and few people knew or could handle EDI, RPC, and similar APIs. Web services may have more solid frameworks and would thus be easier to use.
A third reason that web services are useful: They can provide a very loose coupling between an application that uses the web service and the web service itself. This should allow either piece to change without negatively affecting the other. This flexibility may become increasingly important as software is built by assembling individual components into a complete application.
Platforms
Web services can be deployed by using application server software. A sample of application servers:
- Axis and the Jakarta Tomcat server (both at the Apache project)
- ColdFusion MX from Macromedia
- Java Web Services Development Pack (JWSDP) from Sun Microsystems (based on Jakarta Tomcat)
- JOnAS (part of the ObjectWeb Open Source initiative)
- Microsoft .NET servers from Microsoft
- Mono development platform from Novell
- WebLogic from BEA Systems
- WebSphere Application Server from IBM (based on the Apache server and the J2EE platform)
- Zope is an object oriented web application server written in Python
See also
- Business logic
- Computing
- REST
- Service-oriented analysis and design
- Service-oriented architecture
- Software component
- Software design
- Web application
- Website
External links
- Apache Axis (SOAP Implementation) (http://ws.apache.org/axis/index.html)
- Article, "Stop the hype about webservices!" (http://weblogs.java.net/pub/wlg/891)
- XMethods listing of publicly available web services (http://www.xmethods.com/)
- Microsoft proposed standards (http://msdn.microsoft.com/webservices/understanding/gxa/)
- Organization for the Advancement of Structured Information Standards (http://www.oasis-open.org/)
- Web Services Activity (http://www.w3.org/2002/ws/) at World Wide Web Consortium
- XML Protocol Working Group (SOAP) (http://www.w3.org/2000/xp/Group/) at World Wide Web Consortium
- Article, "The third era starts here" (http://www.guardian.co.uk/online/story/0,3605,965532,00.html)
- Service-Oriented Architecture (SOA) and Web services (http://www-130.ibm.com/developerworks/webservices/) at IBM developerWorks.
- Oracle Web Services Technology Center (http://www.oracle.com/technology/tech/webservices/index.html)
- Web services product information (http://www.bitpipe.com/rlist/term/Web-Services-(Software).html)
- IEEE International Conference on Web Services (http://conferences.computer.org/icws)
- IEEE International Conference on Services Computing (http://conferences.computer.org/scc)
- International Journal of Web Services Research (JWSR) (http://www.idea-group.com/journals/details.asp?id=4138)
- IEEE Services Computing Community (https://www.ieeecommunities.org/services)
de:Webservice es:Servicio Web fr:Service web nl:Webservice sv:Webbtjänst zh:Web服务