You are on page 1of 5

Web service

Web service
A web service is typically an application programming interface (API) or Web API that is accessed via Hypertext Transfer Protocol (HTTP) and executed on a remote system, hosting the requested service. Web services tend to fall into one of two camps: big web services[1] and RESTful web services. The W3C defines a "web service" as "a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format (specifically Web Services Description Language WSDL). Other systems interact with the web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards."[2]

Web services architecture.

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 XML representations of Web resources using a uniform set of "stateless" operations; and arbitrary Web services, in which the service may expose an arbitrary set of operations."[3]

Big web services


"Big web services" use Extensible Markup Language (XML) messages that follow the SOAP standard and have been popular with traditional enterprise. In such systems, there is often a machine-readable description of the operations offered by the service written in the Web Services Description Language (WSDL). The latter is not a requirement of a SOAP endpoint, but it is a prerequisite for automated client-side code generation in many Java and .NET SOAP frameworks (frameworks such as Spring, Apache Axis2 and Apache CXF being notable exceptions). Some industry organizations, such as the WS-I, mandate both SOAP and WSDL in their definition of a web service.

Web API
Web API is a development in web services (in a movement called Web 2.0) where emphasis has been moving away from SOAP based services towards Representational State Transfer (REST) based communications.[4] REST services do not require XML, SOAP, or WSDL service-API definitions. Web APIs allow the combination of multiple web services into new applications known as mashups.[5]

Web services in a service-oriented architecture.

When used in the context of web development, Web API is typically a defined set of Hypertext Transfer Protocol (HTTP) request messages along with a definition of the structure of response messages, usually expressed in an Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format.

Web service When running composite web services, each sub service can be considered autonomous. The user has no control over these services. Also the web services themselves are not reliable; the service provider may remove, change or update their services without giving notice to users. The reliability and fault tolerance is not well supported; faults may happen during the execution. Exception handling in the context of web services is still an open research issue. Still it can be handled by responding with an error object to the client.

Styles of use
Web services are a set of tools that can be used in a number of ways. The three most common styles of use are RPC, SOA and REST.

Remote procedure calls


RPC web services present a distributed function (or method) call interface that is familiar with many developers. Typically, the basic unit of RPC web services is the WSDL operation. The first web services tools were focused on RPC, and as a result this style is widely deployed and supported. However, it is sometimes criticized for not being loosely coupled, because it was often implemented by mapping services directly to language-specific functions or method calls. Many vendors felt this approach to be a dead end, and pushed for RPC to be disallowed in the WS-I Basic Profile.

Architectural elements involved in the XML-RPC.

Other approaches with nearly the same functionality as RPC are Object Management Group's (OMG) Common Object Request Broker Architecture (CORBA), Microsoft's Distributed Component Object Model (DCOM) or Sun Microsystems's Java/Remote Method Invocation (RMI).

Service-oriented architecture
Web services can also be used to implement an architecture according to service-oriented architecture (SOA) concepts, where the basic unit of communication is a message, rather than an operation. This is often referred to as "message-oriented" services. SOA web services are supported by most major software vendors and industry analysts. Unlike RPC web services, loose coupling is more likely, because the focus is on the "contract" that WSDL provides, rather than the underlying implementation details. Middleware analysts use enterprise service buses which combine message-oriented processing and web services to create an event-driven SOA. One example of an open-source ESB is Mule, another one is Open ESB.

Web service

Representational state transfer (REST)


REST attempts to describe architectures which use HTTP or similar protocols by constraining the interface to a set of well-known, standard operations (like GET, POST, PUT, DELETE for HTTP). Here, the focus is on interacting with stateful resources, rather than messages or operations. An architecture based on REST (one that is 'RESTful') can use WSDL to describe SOAP messaging over HTTP, can be implemented as an abstraction purely on top of SOAP (e.g., WS-Transfer), or can be created without using SOAP at all.

Representation of concepts defined by WSDL 1.1 and WSDL 2.0 documents.

WSDL version 2.0 offers support for binding to all the HTTP request methods (not only GET and POST as in version 1.1) so it enables a better implementation of RESTful Web services.[6] However, support for this specification is still poor in software development kits, which often offer tools only for WSDL 1.1.

Design methodologies
A web service can be written in two ways: A developer using the "bottom up method" first writes the implementing class in a programming language, and then uses a WSDL generating tool to expose its methods as a web service[7]. This is often the simpler approach. A developer using the "top down method" first writes the WSDL document and then uses a code generating tool to produce the class skeleton, which he later completes. This way is generally considered more difficult but can produce cleaner designs[8]

Criticisms
Critics of non-RESTful web services often complain that they are too complex[9] and based upon large software vendors or integrators, rather than typical open source implementations. There are open source implementations like Apache Axis and Apache CXF. One key concern of the REST web service developers is that the SOAP WS toolkits make it easy to define new interfaces for remote interaction, often relying on introspection to extract the WSDL, since a minor change on the server (even an upgrade of the SOAP stack) can result in different WSDL and a different service interface[10] . The client-side classes that can be generated from WSDL and XSD descriptions of the service are often similarly tied to a particular version of the SOAP endpoint and can break if the endpoint changes or the client-side SOAP stack is upgraded. Well-designed SOAP endpoints (with handwritten XSD and WSDL) do not suffer from this but there is still the problem that a custom interface for every service requires a custom client for every service.

Web service There are also concerns about performance due to web services' use of XML as a message format and SOAP/HTTP in enveloping and transport.

See also
List of web service frameworks List of web service protocols List of web service specifications Service system Service-oriented architecture (SOA) Amazon Web Services Enterprise Information Integration (EII) Business Intelligence 2.0 (BI 2.0) Devices Profile for Web Services Web Processing Service Web server Microsoft Connected Services Framework Service Implementation Bean

Web Services Discovery OAuth SOAPjr

References
[1] [2] [3] [4] Richardson, Leonard; Ruby, Sam (2007). RESTful Web services. O'Reilly Media. p.299. ISBN9780596529260. "Web Services Glossary" (http:/ / www. w3. org/ TR/ ws-gloss/ ). . "Relationship to the World Wide Web and REST Architectures" (http:/ / www. w3. org/ TR/ ws-arch/ #relwwwrest). . Benslimane, Djamal; Schahram Dustdar, and Amit Sheth (2008). "Services Mashups: The New Generation of Web Applications" (http:/ / dsonline. computer. org/ portal/ site/ dsonline/ menuitem. 9ed3d9924aeb0dcd82ccc6716bbe36ec/ index. jsp?& pName=dso_level1& path=dsonline/ 2008/ 09& file=w5gei. xml& xsl=article. xsl). IEEE Internet Computing, vol. 12, no. 5. Institute of Electrical and Electronics Engineers. pp. 1315. . [5] "Mashup Dashboard" (http:/ / www. programmableweb. com/ mashups). ProgrammableWeb.com. 2009. . [6] "Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts" (http:/ / www. w3. org/ TR/ 2007/ REC-wsdl20-adjuncts-20070626/ #_http_binding_default_rule_method). . [7] http:/ / help. eclipse. org/ help33/ index. jsp?topic=/ org. eclipse. jst. ws. doc. user/ concepts/ cwsbtmup. html [8] http:/ / help. eclipse. org/ help33/ index. jsp?topic=/ org. eclipse. jst. ws. doc. user/ concepts/ cwstopdown. html [9] ongoing WS-Pagecount (http:/ / www. tbray. org/ ongoing/ When/ 200x/ 2004/ 09/ 21/ WS-Research) [10] Rethinking the Java SOAP Stack (http:/ / www. hpl. hp. com/ techreports/ 2005/ HPL-2005-83. html)

External links
W3C Web Services Activity home page (http://www.w3.org/2002/ws/) Web Services Architecture (http://www.w3.org/TR/ws-arch/) (W3C Working Group Note) Messaging Design Pattern and transparent access to distributed components (http://jt.dev.java.net/files/ documents/5553/149793/distributedModel.pdf) Where to find Web Services on the Web: Investigating Web Services on the World Wide Web (2008) (http:// www2008.org/papers/fp389.html)

Article Sources and Contributors

Article Sources and Contributors


Web service Source: http://en.wikipedia.org/w/index.php?oldid=396893926 Contributors: @modi, A.bit, Account9000, Adeio, Akadruid, Alainr345, Alanyst, Aldie, AlephGamma, AlistairMcMillan, Amolshah, Andonic, Anilelson, Anjum Vear, AnmaFinotera, Anna Lincoln, Antientropic, Argv minus one, Asheahen, Audriusa, Avernet, Bananabruno, Banano03, Beefyt, Beland, Bert.Roos, Beve, Bevo, Bigbang21, Bigs slb, Blehfu, Bobdc, Bovineone, Boyprose, Bpatton, Bullzeye, Burchard, BurntSky, C3o, CCFS, CSumit, Caltas, Canadian-Bacon, CanisRufus, Centheroworld, Cherhillsnow, Chocolateboy, Chris Q, Christopher Mahan, Claidheamohmor, Cocytus, Cokri, Complex (de), Connormah, Cpiral, Craig Stuntz, Crywalt, Cubslvr, Cysiek10, DEng, DMacks, Da monster under your bed, Dark.Red.Dragon, Darrentcook, David Woodward, DavidBiesack, Dawidl, Defragyourmind, Dehumanizer, Deltabeignet, Dhinchcliffe, Diberri, Dipskinny, Discospinster, Djmackenzie, Dmccreary, Dmsar, DocendoDiscimus, Dockurt2k, Dom Padden, DopefishJustin, Dorongrinstein, DougBarry, Doughnutt, Dylan620, Egbsystem, Ehheh, Eivind, Elassint, Enric Naval, Erics, EvenT, Everyking, Falcon8765, FayssalF, Fdp, FelisLeo, Femto, Foobaz, Franl, Fred Bradstadt, Galkovsky, Gerardsylvester, Gherson2, Ghettoblaster, Gilliam, Gogo Dodo, Gortsack, Grafen, Gschuell, Gtondello, Gurubrahma, Harryboyles, Hayabusa future, Heirpixel, HenryLi, Heqs, Herbee, Herostratus, Howard Price, Htmlapps, Hu12, Hugoh, I am neuron, IPawel, Icseaturtles, IntenseTech, Ion496, Irsathali, Isaac Rabinovitch, JLaTondre, JPalonus, JaGa, Jacob Finn, JamesLWilliams2010, Jatkins, Javalizard, Jay, Jcs2006, Jerazol, Jessecollins, Jetpilot2005, Jmchugh, Jmnbatista, John Vandenberg, John2000, JohnPritchard, Johnchiu, JohnyDog, JosebaAbaitua, Jovianeye, Julesd, Jusdafax, Jzhang2007, KNHaw, Kamoranakrre T. Eyaelitenan, Kayvaang, Kbrose, Keegscee, Keepsleeping, Kenmccallum, Kgoarany, Khalid hassani, Kku, Kocio, Kolberg, Krauss, Krellis, Kustere, Kyngas, Lacoblaho, Lancelotlinc, Lastorset, Latrippi, Leujohn, Lexor, LiDaobing, Liftarn, Linkspamremover, Luk, Luzian, Lus Felipe Braga, M raha, M4gnum0n, MER-C, MFNickster, MacTed, Malafaya, Maltest, Mareino, Mattgibson, Max Schwarz, Mazzid, Mcsee, Mcyoungwp, Mdd, Mdd4696, Melah Hashamaim, Mellery, Michig, Mkeranat, Mnot, Monikamoorjani, Moquist, Moulaali, MrJones, MrOllie, Mwarf, Mxn, Myanw, Myasuda, NawlinWiki, Nddstudent, Neilc, Netsnipe, NeutralPoint, Nickg, Nihiltres, Nixdorf, Noel4urs, Nurg, Nuttycoconut, Nv8200p, Nwatson, OliD, Ordinant, Ownlyanangel, Paladin1979, Pavel Vozenilek, Perfecto, Peter Delmonte, Pinky Brain, Polletfa, Polymorp, Precision-nazi, Prolog, Psantora, Pschut, Pyroman, Q Chris, Quailwood, Quilbert, Quintote, Qxz, Rami R, Rathee, RayGates, Raznice, Rchandra, Red van man, RedWolf, Relambert, Retired username, RexNL, Richard R White, RichardVeryard, Rlest, Rob Cranfill, Robenel, Robertkeller, Rogerd, Ronz, Rudyp321, Ruwan.linton, S.K., SMcCandlish, ST47, Salvatore Ingala, Sam Korn, Samisa.abeysinghe, Saucepan, SchreyP, Selvaesakkirajan, Seth Nimbosa, Shadowjams, Shantavira, Shivachitta, Shotgunlee, Sina2, Sir Vicious, Soaguy, Soalib, Soumyasch, SpaceFlight89, Springnuts, SpuriousQ, StaticGull, SteinbDJ, StephanZehrer, Stevag, SteveLoughran, Stevietheman, Stonedoc13, Suffusion of Yellow, Sumit.varshney, Svick, Talis paul, TechPurism, Tharakan, The Hokkaido Crow, Thehelpfulone, Thiseye, Thue, Tokek, Tsharma89, TwoOneTwo, U 06111976, Uncle Dick, Urspeeaar, Uzume, Vardhanw, Versageek, Vhastings, Vijaywalter, Vinny, Violentbob, Voormann, Warpsmith, Wcandillon, Wcchenoweth, Weregerbil, Wgfcrafty, Wiki inukshuk, Wimt, WojPob, Wsfan, Wsibob, Wsu-aw-dr, Wwwwolf, Yaronf, Zhanglj, Zzuuzz, 831 anonymous edits

Image Sources, Licenses and Contributors


Image:webservices.png Source: http://en.wikipedia.org/w/index.php?title=File:Webservices.png License: GNU Free Documentation License Contributors: H. Voormann Image:SOA Detailed Diagram.png Source: http://en.wikipedia.org/w/index.php?title=File:SOA_Detailed_Diagram.png License: Creative Commons Attribution 3.0 Contributors: User:JamesLWilliams2010 Image:webservice xrpc.png Source: http://en.wikipedia.org/w/index.php?title=File:Webservice_xrpc.png License: GNU Free Documentation License Contributors: Krauss File:WSDL 11vs20.png Source: http://en.wikipedia.org/w/index.php?title=File:WSDL_11vs20.png License: Public Domain Contributors: User:Cristcost

License
Creative Commons Attribution-Share Alike 3.0 Unported http:/ / creativecommons. org/ licenses/ by-sa/ 3. 0/

You might also like