WEBSERVICE (1) of Google Search (1)

zhaozj2021-02-17  147

Forehead

With this article, you will be able to understand how to configure services and Google WebService's syntax structure; how to personalize your search, for example: country, language; how to extract search results. Google has now become the most popular search engine on the web, in order to make applications such as New Content WatchDog, GUI search tools, and pattern analysis possible, now they have indexed 20 billion pages, and developers can pass SOAP-based API is called. WebService Introduction

The huge success and continuous development of web applications make it penetrate into all aspects of business sector and individual life. People can enjoy a wide variety of web services as long as they use a browser, such as online shopping, online transactions, online games, scheduled tickets, online chats and dating, and more. At the same time, due to the advantages of Web technology (unified clients and better maintenance), some traditional applications have transformed into B / S architecture-based thin client applications, because it can Avoid spending high costs on desktop applications, and can also solve communication problems between customers and servers. Communication between clients and servers, a perfect solution is to communicate with an HTTP protocol. This is because any machine running a web browser uses the HTTP protocol, which can communicate well through the firewall. Many business procedures are still in another problem, that is, interoperability with other programs. There are currently many commercial data still stored in the form of non-relational documents (VSAM) on large hosts and is accessed by a large-scale machine written in COBOL languages. Moreover, there are also many business programs to write in C , Java, VB, and other languages. Now the simplest procedure is now, all procedures need to integrate and perform data exchange with applications running on other heterogeneous platforms. In the past, there is no application communication standard is independent of the platform, set the model and programming language. Only communicate with HTTP with HTTP via Web Service, Client, and Server, no matter what the platform and programming language of the two programs. Web Service technology is fully standardized based on standards based on standards, all open vendors can have the same standards to develop software products and solutions with cross-platform interoperability on their respective platforms. The soul of cross-platform interoperability is achieved.

The Web is for the program to the user's interaction, and the Web Service is prepared for the program to the program. Web Service allows companies to reduce costs, faster deployment solutions, and open new opportunities. The key to this goal is that the general procedure to program communication model, which is based on existing and emerging standards. These include: HTTP, SOAP, WSDL, UDDI SOAP: is an abbreviation of "Simple Object Access Protocol", SOAP is the protocol of messaging, which specifies how web services communicates information. Simply put, SOAP specifies: 1. The format of passing information is XML. This makes Web Services to be implemented in any platform. 2. The format of the remote object method call. The method name and parameter type of the called object and the call are specified. 3. Parameter type and mapping between XML formats. This is because, the method called is sometimes necessary to deliver a complex parameter, for example, a Person object. How to use XML to represent an object parameter and the range defined by SOAP.

WSDL: is an abbreviation for "Web Services Description Language". WSDL is the definition language of web services. When a certain service is realized (eg, the stock query service), in order to call other programs, you must tell you the service interface. For example: the service name, the machine name, listening port number, the type of password, the number of pass parameters, the number, and the order of return, and the like. This service can be called. The WSDL protocol is to specify the criteria for Web Services description. UDDI: Abbreviation for "Universal Description, Discovery, And Integration". Simply put, UDDI is used to centrally store and find the WSDL description file, play the role of the directory server.

Quick installation

The operating environment of this article is JDK1.3 Tomcat 4.0 JSP. To use Google's service, you must have "license key", you can at https://www.google.com/accounts/newaccount?continue=http://api.google.com/createkey&followup=http://API. Google.com/CreateKey gets, enter the appropriate information, then get "license key" to your email. Then you need "Java API for XML Messaging", "JAXM". It is part of Java XML PACK, provided at http://java.sun.com/xml/downloads/javaxmlpack.html. For more simple expression, I use JSP mode directly and use manual coding without using the IDE environment. Solve Java_Xml_pack-summer02_01.zip just downloaded, find the java_xml_pack-summer-02_01 / jaxp-1.2_01 / xalan.jar file, unwrapport the ORG folder to your application's web-inf / class with WinRAR. Find the java_XML_PACK-SUMMER-02_01 / jaxm-1.1_01 / lib / saaj-api.jar file to unwield it and copy the Javax file to the same directory. Find the java_xml_pack-summer-02_01 / jaxm-1.1_01 / lib / jaxm-api.jar file, unwatch it and copy the Javax folder to the same directory. Find the java_xml_pack-summer-02_01 / jaxp-1.2_01 / jaxp-Api.jar file to unwield it and copy the Javax folder to the same directory. Find the java_xml_pack-summer-02_01 / jaxm-1.1_01 / jaxm / saaj-ri.jar file, unwield and copy the COM folder to the same directory. Here, the installed work is completed. Please see the second part of the search format and code. (Note that the reference should indicate the original author posted this article:! Rosen Jiang and Source: http: //blog.9cbs.net/rosen)

转载请注明原文地址:https://www.9cbs.com/read-31452.html

New Post(0)