Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for WEB side to call local service

A local service and server-side technology, applied in the field of data processing, can solve problems such as inability to realize local resource operations

Inactive Publication Date: 2018-06-08
FUJIAN RONGJI SOFTWARE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the method provided by the above patent document needs targeted development for different JavaScript engines, and for browsers whose JavaScript engine is not open source, the method provided by the above patent document cannot realize local resource operation

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 WEB side to call local service
  • Method and system for WEB side to call local service

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] This embodiment provides a method for invoking a local service at a WEB end, including:

[0064] S1. The WEB end loads a WEB page.

[0065] S2. When the WEB end receives the request from the WEB page for invoking the local service, the WEB end generates an instruction message corresponding to the request. Specifically:

[0066] Obtain the communication protocol between the WEB end and the server end;

[0067] Obtain a command name and parameters corresponding to the request;

[0068] Obtain the IP address and port number of the server;

[0069]An instruction message is generated according to the communication protocol, the instruction name, the parameter, the IP address and the port number.

[0070] Optionally, instruction construction and instruction sending are written in JavaScript.

[0071] Wherein, the naming standard of instructions and parameters between the WEB end and the server end is preset, so that the server end can parse the instruction message sent b...

Embodiment 2

[0081] This embodiment provides a system for invoking local services on the WEB side, including one or more processors 1 and a memory 2, the memory 2 stores programs, and is configured to be executed by the one or more processors 1 as follows step:

[0082] S1. The WEB end loads a WEB page.

[0083] S2. When the WEB end receives the request from the WEB page for invoking the local service, the WEB end generates an instruction message corresponding to the request. Specifically:

[0084] Obtain the communication protocol between the WEB end and the server end;

[0085] Obtain a command name and parameters corresponding to the request;

[0086] Obtain the IP address and port number of the server;

[0087] An instruction message is generated according to the communication protocol, the instruction name, the parameter, the IP address and the port number.

[0088] S3. The server parses the instruction message to obtain the instruction name;

[0089] If the interface correspond...

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 relates to the field of data processing and particularly relates to a method and system for a WEB side to call local service. The method comprises the steps that the WEB side loads a WEBpage; when the WEB page receives a local service call request sent by the WEB page, the WEB side generates an instruction message corresponding to the request; a server side obtains an interface corresponding to the instruction message; and the server side controls local service to perform an instruction corresponding to the instruction message, through utilization of the interface. The method and system for the WEB side to call the local service are realized. The method and the system are applicable to various browsers and have relatively high compatibility.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and a system for invoking local services at a WEB end. Background technique [0002] In a B / S architecture system, the WEB browser usually needs to use the resources of the local computer, such as starting application software such as WORD, obtaining the Mac address of the network card, and so on. However, due to system permission issues, only some local resources can be controlled and used. [0003] In order to solve the above problems, the patent document with the application number of 201310011380.4 provides a method and device for realizing local operation on a WEB page. The method is applied to an electronic device, which includes a display unit and has an HTML operating environment. The method includes: loading a WEB page through address information in an HTML running environment; during the process of loading the page, obtaining identification information used to c...

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): H04L29/08G06F9/54
CPCG06F9/548H04L67/02
Inventor 翁康发陈明平周仁锟
Owner FUJIAN RONGJI SOFTWARE