Web service

A Web service is a method of communication between two electronic devices over a network. It is a software function provided at a network address over the Web with the service always on as in the concept of utility computing. The W3C defines a Web service generally as:-

a software system designed to support interoperable machine-to-machine interaction over a network.[1]

The W3C Web Services Architecture Working Group defined a Web Services Architecture, requiring a specific implementation of a "Web service." In this:

[a Web service] has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP (Simple Object Access Protocol) messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards.[1]

Most Web services do not adopt this complex architecture. This article describes it in more detail.

The W3C also states:

We can identify two major classes of Web services:
  • REST-compliant Web services, in which the primary purpose of the service is to manipulate representations of Web resources using a uniform set of stateless operations.
  • Arbitrary Web services, in which the service may expose an arbitrary set of operations.[2]

Explanation

Many organizations use multiple software systems for management. Different software systems often need to exchange data with each other, and a Web service is a method of communication that allows two software systems to exchange this data over the internet. The software system that requests data is called a service requester, whereas the software system that would process the request and provide the data is called a service provider.

Different software might be built using different programming languages, and hence there is a need for a method of data exchange that doesn't depend upon a particular programming language. Most types of software can, however, interpret XML tags. Thus, Web services can use XML files for data exchange.

Rules for communication between different systems need to be defined, such as:

All of these rules for communication are defined in a file called WSDL (Web Services Description Language), which has the extension .wsdl.

A directory called UDDI (Universal Description, Discovery and Integration) defines which software system should be contacted for which type of data. So when one software system needs one particular report/data, it would go to the UDDI and find out which other system it can contact for receiving that data. Once the software system finds out which other system it should contact, it would then contact that system using a special protocol called SOAP (Simple Object Access Protocol). The service provider system would first of all validate the data request by referring to the WSDL file, and then process the request and send the data under the SOAP protocol.

Web API

A Web API is a development in Web services where emphasis has been moving to simpler representational state transfer (REST) based communications.[3] RESTful APIs do not require XML-based Web service protocols (SOAP and WSDL) to support their interfaces.

Automated design methods

Automated tools can aid in the creation of a Web service. For services using WSDL, it is possible to either automatically generate WSDL for existing classes (a bottom-up model) or to generate a class skeleton given existing WSDL (a top-down model).

Web services that use markup languages

There are a number of Web services that use markup languages:

Criticisms

Critics of non-RESTful Web services often complain that they are too complex[7] and based upon large software vendors or integrators, rather than typical open source implementations.

There are also concerns about performance due to Web services' use of XML as a message format and SOAP/HTTP in enveloping and transporting.[8]

Regression Testing of Web service

Functional and non-functional Web service testing is done with the help of WSDL parsing. Regression testing is performed by identifying the changes made thereafter. Web service regression testing needs can be categorized in three different ways, namely, changes in WSDL, changes in code, and selective re-testing of Web service operations. We can capture the above three needs in three intermediate forms of Subset WSDL,[6] namely, Difference WSDL (DWSDL), Unit WSDL (UWSDL), and Reduced WSDL (RWSDL), respectively. These three Subset WSDLs are then combined to form Combined WSDL (CWSDL) that is further used for regression testing of the Web service. This will help in Automated Web Service Change Management,[9] by performing the selection of the relevant test cases to construct a reduced test suite from the old test suite. [10]

Web Service Change Management

Work related to the dealing with the visualization and capturing changes in a Web service. Visualization and computation of changes can be done in the form of intermediate artifacts (Subset WSDL).[6] The insight on computation of change impact is helpful in testing, top down development and reduce regression testing. Automated Web Service Change Management (AWSCM)[9] is a pioneer tool that identify subset operations in a WSDL to construct a Subset WSDL.

See also

References

  1. 1.0 1.1 "Web Services Glossary". W3C. 2004-02-11. Retrieved 2011-04-22.
  2. "Relationship to the World Wide Web and REST Architectures". Web Services Architecture. W3C. Retrieved 2011-04-22.
  3. Benslimane, D.; Dustdar, S.; Sheth, A. (2008). "Services Mashups: The New Generation of Web Applications". IEEE Internet Computing 10 (5): 13–15. doi:10.1109/MIC.2008.110.
  4. "Help - Creating bottom-up Web services". Eclipse. Retrieved 2011-04-22.
  5. "Help - Creating top-down Web services". Eclipse. Retrieved 2011-04-22.
  6. 6.0 6.1 6.2 Chaturvedi, Animesh (2014). Subset WSDL to Access Subset Service for Analysis. 2014 IEEE 6th International Conference on Cloud Computing Technology and Science. p. 688. doi:10.1109/CloudCom.2014.149. ISBN 978-1-4799-4093-6.
  7. Bray, Tim (2004-10-28). "WS-Pagecount". TBray.org. Retrieved 2011-04-22.
  8. Gray, N. A. B. (2005). "Performance of Java Middleware - Java RMI, JAXRPC, and CORBA". University of Wollongong. pp. 31–39. Retrieved 2011-01-11. The results presented in this paper show that the nature of response data has a greater impact on relative performance than has been allowed for in most previous studies.
  9. 9.0 9.1 Chaturvedi, Animesh (2014). Automated Web Service Change Management AWSCM - A Tool. 2014 IEEE 6th International Conference on Cloud Computing Technology and Science. p. 715. doi:10.1109/CloudCom.2014.144. ISBN 978-1-4799-4093-6.
  10. Chaturvedi, Animesh; Gupta, Atul (2013). A tool supported approach to perform efficient regression testing of web services. 2013 IEEE 7th International Symposium on the Maintenance and Evolution of Service-Oriented and Cloud-Based Systems. p. 50. doi:10.1109/MESOCA.2013.6632734. ISBN 978-1-4673-4889-8.

External links

Wikiversity has learning materials about Web service