Google’s Web Service January 4, 2004 Shuying Wang.

Slides:



Advertisements
Similar presentations
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Advertisements

Introduction to Web Services
Siebel Web Services Siebel Web Services March, From
Using Taverna to access SOAP-based web services Per Larsson CBR
Overview of Web Services
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
SOAP, WSDL & introduction to UDDI
Snejina Lazarova Senior QA Engineer, Team Lead CRMTeam Dimo Mitev Senior QA Engineer, Team Lead SystemIntegrationTeam Telerik QA Academy SOAP-based Web.
DT228/3 Web Development WWW and Client server model.
Presentation 7 part 1: Web Services Introduced. Ingeniørhøjskolen i Århus Slide 2 Outline Definition Overview of Web Services Examples Next Time: SOAP.
Presentation 7: Part 1: Web Services Introduced. Outline Definition Overview of Web Services Examples Next Time: SOAP & WSDL.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
G O B E Y O N D C O N V E N T I O N WORF: Developing DB2 UDB based Web Services on a Websphere Application Server Kris Van Thillo, ABIS Training & Consulting.
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
Understand Web Services
6/11/2015Page 1 Web Services-based Distributed System B. Ramamurthy.
Slide 1 EE557: Server-Side Development Lecturer: David Molloy Room: XG19 Mondays 10am-1pm Notes:
Web Services Andrea Miller Ryan Armstrong Alex. Web services are an emerging technology that offer a solution for providing a common collaborative architecture.
Web Services By Ethan Justin Yuli. Web Services in Action Information through Integration (Google Example)Google Example What do Web.
CSE 636 Data Integration Web Services.
2006 IEEE International Conference on Web Services ICWS 2006 Overview.
Introduction to Google API… By Pratheepan Raveendranathan NLP Group Meeting 10/10/2003.
Web Service Architecture Part I- Overview and Models (based on W3C Working Group Note Frank.
WSDL Web Services Description Language Neet Wadhwani University of Colorado 3 rd October, 2001.
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
CS 157B: Database Management Systems II February 27 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
1 3. Implementing Web Services 1.Create SOAP proxy interfaces and WSDL based service descriptions 2.Register/publish services 3.Stores service descriptions.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
WSDL Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
WSDL: Web Services Definition Language CS 795/895.
Presentation 7: Part 1: Web Services Introduced. Outline Definition Overview of Web Services Examples Next Time: SOAP & WSDL.
Web Services An introduction for eWiSACWIS May 2008.
Message Driven Beans & Web Services INFORMATICS ENGINEERING – UNIVERSITY OF BRAWIJAYA Eriq Muhammad Adams J
Web Services: WSDL. Kas ir WSDL? Pirms izmantot SOAP ar konkrēto servisu ir jāzina kādai jābūt SOAP ziņojuma struktūrai kuru protokolu izmantot (HTTP,
WSDL Tutorial Ching-Long Yeh 葉慶隆 Department of Computer Science and Engineering Tatung University
Lecture 15 Introduction to Web Services Web Service Applications.
Web Services (SOAP, WSDL, UDDI) SNU OOPSLA Lab. October 2005.
Web Services Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Web Services interoperability and standards. Infrastructure Challenge ● Applied bioinformatics need various computer resources ● The amount and size of.
Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester,
© 2002 IBM Corporation Web 2.0 Mashups Project Proposal UCLA CS130, Spring 2007 Alex Rodriguez SWG – Tivoli Chris.
1 Web Service Description Language (WSDL) 大葉大學資工系.
1 WSDL Tutorial Heather Kreger (borrowed from Peter Brittenham) Web Services Architect IBM Emerging Technologies.
WebService. Outline Overview of Web Services SOAP (messaging) WSDL (service description) UDDI (registry)
Web Services (SOAP) part 1 Eriq Muhammad Adams J |
Kemal Baykal Rasim Ismayilov
SOAP-based Web Services Telerik Software Academy Software Quality Assurance.
WEB SERVICE DESCRIPTION LANGUAGE (WSDL). Introduction  WSDL is an XML language that contains information about the interface semantics and ‘administrivia’
Lattice QCD Data Grid Middleware: Meta Data Catalog (MDC) -- CCS ( tsukuba) proposal -- M. Sato, for ILDG Middleware WG ILDG Workshop, May 2004.
1 Introduction to Servlets. Topics Web Applications and the Java Server. HTTP protocol. Servlets 2.
Introduction to Web Services. Agenda Motivation History Web service model Web service components A walkthrough examples.
Web Services Martin Nečaský, Ph.D. Faculty of Mathematics and Physics Charles University in Prague, Czech Republic Summer 2014.
Web Technologies Lecture 10 Web services. From W3C – A software system designed to support interoperable machine-to-machine interaction over a network.
Government Data Integration หลักสูตรเบื้องต้นSOAP
1/30/20161 Introduction to Web Services Bina Ramamurthy
Introduction to Web Services Presented by Sarath Chandra Dorbala.
December 9, 2004 EC511 Java Pet Store Demo Chandra Donipati.
DEVELOPING WEB SERVICES WITH JAVA DESIGN WEB SERVICE ENDPOINT.
Net-centric Computing Web Services. Lecture Outline  What is Web Service  Web Service Architecture  Creating and using Java Web Services  Apache Axis.
SOAP, Web Service, WSDL Week 14 Web site:
Added Value to XForms by Web Services Supporting XML Protocols Elina Vartiainen Timo-Pekka Viljamaa T Research Seminar on Digital Media Autumn.
Java Web Services Orca Knowledge Center – Web Service key concepts.
WEB SERVICES.
Unit – 5 JAVA Web Services
Web Services Primer Overview of Web Services
Wsdl.
Web services, WSDL, SOAP and UDDI
Presentation transcript:

Google’s Web Service January 4, 2004 Shuying Wang

Overview An introduction to Web Service –SOAP & WSDL Google’s Web Service Architecture Google Web API Google Web API application

Web Evolution XML ProgrammableWeb Static Web DHTML JSP ASP… Dynamic Web HTML Technology Innovation Web Pages Alternate Web Pages Browse the Web Program the Web Web Services

What Is A Web Service? This is the official W3C take on a Web service definition: “A Web service is 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 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. ”

Architecture of Web Service

Simple Object Access Protocol – SOAP 1.2 Generic XML-based RPC protocol Initial specification only covers HTTP- binding Use of XML Schema Multiple protocol bindings available today(SMTP, FTP, JMS, etc.) RPC-style and document-style communication

Example SOAP Message Request A standard XML-based format to describe a SOAP request for a Web Service Provides all the information required by the Web Service provider to process the request General format of a SOAP request: HTTP Header SOAP Action

Example SOAP Message Reponse A standard XML-based format to describe the Response generated by a Web Service Contains information that is to be passed back to the client General format of a SOAP response: HTTP Header

Web Service Definition Language-WSDL(1) From the spec: “XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information.” In another word, WSDL is XML Based Language for describing web services and how to access them

Web Service Definition Language-WSDL(2) WSDL describes four pieces of critical data: Interface information describing all publicly available functions Data type declarations for all message requests and responses Binding information about the transport protocol Address information for locating the service

Web Service at Google In 2002 Google and Amazon introduced Web services APIs SOAP API for accessing Google –Requires registration for a developer’s license key –Limit of 1000 queries per day –According to license terms only way to access Google programmatically

Google Web Service Architecture

Google API Language Support Google.com Google API.NET Java Perl c PHP Web Service client Web Service client Web Service client Web Service client Web Service client SOAP request SOAP request SOAP request SOAP response SOAP response SOAP response

The Google Web APIs Developer’s Kit –A cross-platform WSDL file –A Java wrapper library –A sample.NET application –Documentation, including JavaDoc and SOAP XML samples

Google Web API Beta version supports 3 types of queries: –doSearch –doGetCachedPage –doSpellingSuggestion.

Understanding the Google API query The command in a typical Perl-based Google API applicaton that sends a query to Google looks like: $results = $google_search-> doGoogleSearch(key, query, start, maxResults, filter, restrict, safeSearch, lr, ie, oe);

A sample $results = $google_search-> “+music +mp3”,100, 10, “true”, “”, “true”, “”, “utf8”, “utf8”);

Google API response Can Do –Site –Daterange –Intitie –Inurl –Allintext –Allinlinks –Filetype –Info –Link –Related –Cache Can’t Do –phonebook –rphonebook –bphonebook –stocks

Programming the Google Web API with Java import com.google.soap.search.*; import java.io.*; public class Googly { private static String googleKey = "insert key here"; public static void main(String[] args) { GoogleSearch s = new GoogleSearch( ); // Create a new GoogleSearch object try { s.setKey(googleKey); s.setQueryString(args[0]); // Google query from the command-line s.setMaxResults(10); GoogleSearchResult r = s.doSearch( ); // Query Google GoogleSearchResultElement[] re = r.getResultElements( ); // Gather the results for ( int i = 0; i < re.length; i++ ) { // Output System.out.println(re[i].getTitle( )); System.out.println(re[i].getURL( )); System.out.println(re[i].getSnippet( ) + "\n"); } } catch (GoogleSearchFault f) { System.out.println("GoogleSearchFault: " + f.toString( )); }

Google API application

Resources “Guided Google: A Meta Search Engine and its Implementation using the Google Distributed Web Services” Ding Choon Hoong & Rajkumar Buyya “Google HACKS” Tara Calishain & Rael Dornfest