Method and system for information interaction

An information interaction and abstraction layer technology, applied in the field of information interaction, can solve problems such as poor security, uncontrollable behavior, and impact on web application pages, and achieve good flexibility, easy operation and maintenance, and security and stability.

Active Publication Date: 2013-06-26
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the solution of naked client API tuning, the application page on the web side can directly access the client through Javascript scripts, and the API interface provided by the client can be manipulated arbitrarily. The behavior is uncontrollable and the security is poor.
Moreover, when the client is changed, it will directly affect the application page on the Web side, and the flexibility, compatibility and scalability are poor.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for information interaction
  • Method and system for information interaction
  • Method and system for information interaction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0075] see figure 1 , this embodiment provides a method for information interaction, the method adds an API abstraction layer between the web end and the client, and isolates the web end from the client, the method specifically includes:

[0076] 101: Construct an API abstraction layer, and the API abstraction layer connects the web end and the client respectively;

[0077] 102: The web end and the client end exchange information through the API abstraction layer.

[0078] Wherein, the API abstraction layer in step 101 is respectively connected to the Web end and the client, and specifically the following four implementation schemes are available:

[0079] 1. See figure 2 , the API abstraction layer is connected to the client, and the subpage of the API abstraction layer is embedded in the application page on the Web side;

[0080] Wherein, the subpage of the API abstraction layer is also the IFrame of the API abstraction layer.

[0081] Wherein, the client may be a brows...

Embodiment 2

[0115] see Image 6 , this embodiment provides a system for information interaction, the system adds an API abstraction layer between the Web end and the client, and isolates the Web end from the client. As an implementation of this embodiment, the system Including: Web terminal 301, client terminal 302, API abstraction layer 303;

[0116] The API abstraction layer 303 is used to connect the Web terminal 301 and the client terminal 302 respectively;

[0117] The Web terminal 301 and the client terminal 302 are respectively used for information interaction through the API abstraction layer 303 .

[0118] As the second implementation of this embodiment, the API abstraction layer 303 is respectively connected to the Web terminal 301 and the client 302, and there are the following four implementation methods:

[0119] 1. The API abstraction layer 303 is specifically used to communicate with the client 302, and the subpage of the API abstraction layer 303 is embedded in the appli...

Embodiment 3

[0136] see Figure 7 , this embodiment provides a method for information interaction, the method includes:

[0137] 401: Construct an API abstraction layer, and the API abstraction layer is connected to the web end and the client respectively;

[0138] 402: The web side makes an API call to the client through the API abstraction layer.

[0139] Among them, the API abstraction layer in step 401 is connected to the web terminal and the client respectively, and specifically there are the following four implementation schemes:

[0140] 1. The API abstraction layer is connected to the client, and the subpages of the API abstraction layer are embedded in the application pages on the Web side;

[0141] Wherein, the subpage of the API abstraction layer is also the IFrame of the API abstraction layer.

[0142] Wherein, the client may be a browser. Using the cross-domain protection mechanism (or the same-origin policy) of the browser itself, the application pages on the Web side can...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a system for information interaction and relates to the technical field of computers. The method comprises the steps: an application programming interface (API) abstraction layer is established and the API abstraction layer is respectively communicated with a Web side and a client side; and information interaction of the Web side and the client side can be achieved through the API abstraction layer. The system comprises the Web side, the client side and the API abstraction layer. The API abstraction layer is used for being respectively communicated with the Web side and the client side. The Web side and the client side are respectively used for conducting the information interaction through the API abstraction layer. According to the technical scheme, a port of the client side can not be directly called by the Web side so that safety and reliability of the client side are guaranteed; and due to existence of the API abstraction layer, change of any one of the Web side and the client side can not directly influence the other side, a plurality of environments or platforms such as Windows, Mac and Linux or a mobile terminal are synchronously compatible under the condition that the same set of API is changed a little so that flexibility, compatibility and expandability are good. In addition, the API abstraction layer can be released directly without the requirement for upgrading an application program by a user so that operation and maintenance are easy.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an information interaction method and system. Background technique [0002] The development environment for web applications is the web. Developers can take advantage of the advantages of the web to build rich and colorful application interfaces, which are easy to deploy and publish. The development threshold is low, the technology is popular, and the security is good, and it will not cause damage to the local system. On the basis of the Web, the local service is connected to the script space of the Web, so that the script of the Web page can call the local service, and the local service provides the ability that the Web script does not have, such as the operation of the local file, based on TCP ( Transmission Control Protocol, Transmission Control Protocol) or UDP (User Datagram Protocol, User Datagram Protocol) data services, etc., thereby expanding the capabilities o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F9/46H04L29/08
Inventor 屈超郭学亨黄奎常平周志超
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products