Use Google's Web Service

Source: Internet
Author: User
Tags email account

I. Introduction
Google search engine provides a SOAP-based Web Service. This means that this service can be used in different development languages and environments. In addition, to simplify Java programmer development, Google also provides a set of Java API interfaces for accessing Web Serivce, this makes it easy to develop a program that supports the Google search function. Developers can embed Google's search functions into their applications. This article describes how to use these Java APIs and how to use google's Web Service.
Currently, Google's API is still in Beta testing, so there are still some restrictions on the use of the API. For example, you need to apply for an account to use these Apis. For free accounts, to prevent improper use by developers, each account can be queried up to 1000 times a day. At present, Google has not yet proposed a formal operation model and billing method.
Google APIs currently provide the following three services:
1) search service. When a user submits a search content request, the Google server searches for more than 2 billion of the webpage content and returns the target meeting the user's requirements to the user. Generally, this processing takes only a few seconds.
2) Cache service ). When a user submits a URL, the Google server returns the latest record of the searcher accessing the URL. In this way, users can easily reuse Google's search results.
3) check spelling. This function is used to check whether a user's query request is valid. When a user submits a check content, the Google server returns a valid query Request closest to the content, and the returned query request will comply with Google's query rules.
2. Preparations
To develop Java-based programs, we need to make the following preparations.
1) create a Java development environment, Java SDK 1.3.1 or an updated version. Related address: http:. // java.sun.com/J2SE
2) download the Google API Jar file, Googleapi. jar. Developers can download it at http://www.google.com/apis.
3) apply for a Google access account. Currently, Google supports free application. You need to use an email account to obtain a new account. Note: currently, the free account supports a maximum of 1000 queries per day. Application address: http://www.google.com/apis.
4) (optional) If You Need To directly send SOAP requests through Java programs, developers need to download the relevant Java software package JAXM. : Http://java.sun.com/xml

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.