1 / 10

What is a web service?

What is a web service?. A remote procedure call (RPC) over HTTP. A web-accessible operation that takes input and returns results in XML. Like a web page, but just the data with no presentation specifications. Web definitions. Importance of Web Services.

gilon
Télécharger la présentation

What is a web service?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What is a web service? • A remote procedure call (RPC) over HTTP. • A web-accessible operation that takes input and returns results in XML. • Like a web page, but just the data with no presentation specifications. • Web definitions

  2. Importance of Web Services • Larry Page, on why Google introduced its search API: “Within a few years, there will be more programs (agents) accessing Google than people accessing Google.”

  3. Without Web Services:Content and Presentation mixed • Data can only be viewed in forms provided by Server. • Data left hidden in database. • Scrapers not robust or ethical. html Servlet Database

  4. Web Services allow 3rd parties to display data how ever they want html html html Servlet A Servlet B Servlet C xml xml xml Service Database

  5. Examples • Bookstores Using Amazon API • If Google Scholar had a service, could develop graph view, etc.

  6. Web Services Allow for Aggregators html Aggregator Servlet xml xml xml xml Service D Service A Service C Service B Database A Database D Database B Database C

  7. Competing Web Service Standards • WSDL, SOAP, UDDI • REST • XML-RPC

  8. WSDL, SOAP, UDDI • WSDL – Web Service Description Language • SOAP – Simple Object Access Protocol • UDDI – Universal Description, Discovery, and Integration

  9. IDE Support Writing a Service • Programmer writes class in favorite language • Programmer marks as “web service” • IDE generates wsdl file and soap service • walla! Writing a Client • Programmer provides uri of some web service • IDE generates client stub • Programmer makes calls to service methods.

  10. XML is the plumbing Server Client Java C# Generated SOAP Generated SOAP Plumbing: programmers need not worry

More Related