CN112379938A - Cross-browser safe local application calling method based on domestic operating system - Google Patents
Cross-browser safe local application calling method based on domestic operating system Download PDFInfo
- Publication number
- CN112379938A CN112379938A CN202011229934.4A CN202011229934A CN112379938A CN 112379938 A CN112379938 A CN 112379938A CN 202011229934 A CN202011229934 A CN 202011229934A CN 112379938 A CN112379938 A CN 112379938A
- Authority
- CN
- China
- Prior art keywords
- local application
- middleware
- browser
- calling
- middleware service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000005540 biological transmission Effects 0.000 claims description 11
- 230000003993 interaction Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 4
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000013509 system migration Methods 0.000 description 2
- -1 Firefox Chemical compound 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a cross-browser safe local application calling method based on a domestic operating system, and belongs to the field of local application calling methods. The calling method comprises the following steps: step 1: starting middleware services in a domestic terminal computer provided with the middleware services, automatically starting built-in HTTP services and WebSocket services by the middleware services, and waiting for a request of a client; step 2: the browser sends a local program calling request to the middleware service through an HTTP (hyper text transport protocol) or WebSocket protocol, and the middleware service receives the local program calling request, converts the local program calling request into a local application program calling instruction and sends the local application program calling instruction to the local application program; and step 3: and the local application program is started after receiving the call instruction, sends the UI interface of the local application program to the middleware service, and then transmits the received UI interface to the browser by the middleware service. The method and the device solve the problem that the cross-browser calling of the local application program is difficult.
Description
Technical Field
The invention relates to a cross-browser safe local application calling method based on a domestic operating system, and belongs to the field of local application calling methods.
Background
At present, key domestic software and hardware are in a rapid development stage, basic software and hardware products are unstable, related technical schemes are not mature enough, a software application system needs to finish system migration to a domestic environment through compatible adaptation verification, adaptation problems of various client software, such as electronic seal controls, Office software controls, report printing controls and the like, need to be mainly solved in an application system migration adaptation process, client software is called through a browser plug-in technology mode at present, grammatical interpretations of different browsers on webpages are different, so that finally displayed webpage contents and page format information are inconsistent, a large number of interface compatible codes need to be written, so that consistency of display effects of various browsers can be ensured, domestic terminals currently have various browsers such as Chrome, Firefox, UOS, 360 and the like, on one hand, development modes of plug-in components are different, the development workload is large, plug-in compatibility with mainstream browsers is difficult to achieve, and on the other hand, the display effect of the system UI on each browser is different, so that the user experience is poor. The method for calling the local application across the browsers based on the localization environment is provided, and the problem that the local application program is difficult to call across the browsers is solved.
The prior art application number is: CN201710090347.3 discloses a cross-browser data interaction method and device based on a browser protocol, wherein the method comprises the following steps that 1, a user terminal browser executes and calls a local application program command by utilizing a JavaScript module according to the browser protocol; step 2, the local application program creates a Webserver to carry out local simulation interaction; step 3, calling a JavaScript file of the public server, dynamically adding the JavaScript file, and sending cross-domain data; step 4, after the data transmission is finished, setting a callback function on the Webserver side control, and further loading a callback instruction to perform data callback; and 5, storing the data after callback is finished, deleting callback reference, assigning a variable, and directly using the variable in callback to realize data return.
Disclosure of Invention
In order to solve the technical problem, the invention provides a cross-browser secure local application calling method based on a domestic operating system.
The technical scheme of the invention is as follows:
a local application method is safely called by a cross-browser based on a domestic operating system, the core part is a domestic terminal middleware service, the middleware service is internally provided with an HTTP service and a WebSocket service, a service end mainly provides a version detection and downloading service of the middleware, and an application service used by interaction of the browser and a local application program, and the calling method comprises the following steps:
step 1: starting middleware services in a domestic terminal computer provided with the middleware services, automatically starting built-in HTTP services and WebSocket services by the middleware services, and waiting for a request of a client;
step 2: the browser sends a local program calling request to the middleware service through an HTTP (hyper text transport protocol) or WebSocket protocol, and the middleware service receives the local program calling request, converts the local program calling request into a local application program calling instruction and sends the local application program calling instruction to the local application program;
and step 3: and the local application program is started after receiving the call instruction, sends the UI interface of the local application program to the middleware service, and then transmits the received UI interface to the browser by the middleware service.
Further, in step 1, the middleware service requests the application system server through HTTP at regular time, and detects whether there is a new version of the middleware service, and if there is a new version, automatically downloads the middleware upgrade package from the application system server to the home terminal computer, and then automatically stops the middleware service and performs the upgrade of the middleware service version, and automatically restarts the middleware service after the upgrade of the middleware service version is completed.
Further, in step 2, a secret SM4 packet cipher algorithm is used to encrypt the transmission process of the HTTP or WebSocket transmission protocol.
Further, in step 2, the browser and the middleware service exchange data in a Json data format.
Further, in step 2, a browser based on a kernel is further built in the middleware service, and the middleware service can directly call the local application program.
The invention has the following beneficial effects:
1. according to the invention, by setting the middleware service, when different browsers call the same local application program, the middleware service can transmit data with different browsers, and then sends a call instruction to the local application program according to the call requirement, so that different browsers do not need to design separate plug-ins, the problem of difficult cross-browser call is solved, and simultaneously, the UI (user interface) of the system is displayed consistently;
2. the middleware service can access the application system server side through HTTP at regular time and automatically upgrade the version, so that the running stability and compatibility of the middleware service can be ensured;
3. the transmission process of the HTTP or WebSocket transmission protocol adopts the SM4 block cipher algorithm for encryption, thereby realizing safe data transmission;
4. the browser is embedded in the middleware service, and in the interaction between different browsers and the middleware service, the Web system can be opened by enabling the middleware to use the embedded browser, so that all users use the uniform embedded browser, developers do not need to write compatible codes of various browsers, and the development efficiency is greatly improved.
Drawings
FIG. 1 is a flow chart of the present invention;
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Example 1:
the core part of the cross-browser secure local application calling method based on the domestic operating system is a domestic terminal middleware service, the middleware service is internally provided with an HTTP service, a WebSocket service and a browser based on a chrome kernel, a service end mainly provides version detection and downloading services of the middleware and application services required by interaction between the browser and a local application program, and the method comprises the following steps:
step 1: starting middleware services in a domestic terminal computer provided with the middleware services, automatically starting built-in HTTP services and WebSocket services by the middleware services, and waiting for a request of a client; the middleware service regularly requests an application system server through HTTP to detect whether a new version of the middleware service exists, if the new version exists, the middleware upgrade package is automatically downloaded to a domestic terminal computer, then the middleware service is automatically stopped, the middleware service version is upgraded, and the middleware service is automatically restarted after the middleware service version is upgraded;
step 2: the method comprises the steps that a browser sends a 'WPS opening' request to a middleware service through an HTTP or WebSocket protocol, the transmission process of the HTTP or WebSocket protocol is encrypted by using a state secret SM4 block cipher algorithm, the middleware service receives the 'WPS opening' request sent by the browser, the middleware service receives the 'WPS opening' request, converts the 'WPS opening' request into a calling instruction of a 'WPS' program and sends the calling instruction to the 'WPS' program, and the browser and the middleware service exchange data in a Json data format;
and step 3: and the local application program is started after receiving the call instruction, and sends the interface opened by the WPS program to the middleware service, and the middleware service transmits the received interface opened by the WPS program to the browser.
Example 2:
the core part of the cross-browser secure local application calling method based on the domestic operating system is a domestic terminal middleware service, the middleware service is internally provided with an HTTP service, a WebSocket service and a browser based on a chrome kernel, a service end mainly provides version detection and downloading services of the middleware and application services required by interaction between the browser and a local application program, and the method comprises the following steps:
step 1: starting middleware services in a domestic terminal computer provided with the middleware services, automatically starting built-in HTTP services and WebSocket services by the middleware services, and waiting for a request of a client; the middleware service regularly requests an application system server through HTTP to detect whether a new version of the middleware service exists, if the new version exists, the middleware upgrade package is automatically downloaded to a domestic terminal computer, then the middleware service is automatically stopped, the middleware service version is upgraded, and the middleware service is automatically restarted after the middleware service version is upgraded;
step 2: the method comprises the steps that A, a browser sends an 'electronic seal program opening' request to a middleware service through an HTTP or WebSocket protocol, the transmission process of the HTTP or WebSocket protocol is encrypted by adopting a national secret SM4 block cipher algorithm, the middleware service receives the 'electronic seal program opening' request, converts the 'electronic seal program opening' request into a call instruction of an 'electronic seal' program and sends the call instruction to the 'electronic seal' program;
and step 3: the local electronic seal program is started after receiving the calling instruction, the interface opened by the electronic seal program is sent to the middleware service, and the middleware service transmits the received interface opened by the electronic seal program to the browser A;
and 4, step 4: the method comprises the following steps that a browser B sends an 'electronic seal program opening' request to a middleware service through an HTTP or WebSocket protocol, the transmission process of the HTTP or WebSocket protocol is encrypted by adopting a national secret SM4 block cipher algorithm, the middleware service receives the 'electronic seal program opening' request sent by the browser B, and the middleware service receives the 'electronic seal program opening' request, converts the 'electronic seal program opening' request into a calling instruction of an 'electronic seal' program and sends the calling instruction to the 'electronic seal' program;
and 5: and the local electronic seal program is started after receiving the calling instruction, the interface opened by the electronic seal program is sent to the middleware service, and the middleware service transmits the received interface opened by the electronic seal program to the browser B, so that the same program can be called by the browser.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (5)
1. A cross-browser secure local application calling method based on a domestic operating system is characterized by comprising the following steps: the method comprises the following steps:
step 1: starting middleware services in a domestic terminal computer provided with the middleware services, automatically starting built-in HTTP services and WebSocket services by the middleware services, and waiting for a request of a client;
step 2: the browser sends a local program calling request to the middleware service through an HTTP (hyper text transport protocol) or WebSocket protocol, and the middleware service receives the local program calling request, converts the local program calling request into a local application program calling instruction and sends the local application program calling instruction to the local application program;
and step 3: and the local application program is started after receiving the call instruction, sends the UI interface of the local application program to the middleware service, and then transmits the received UI interface to the browser by the middleware service.
2. The method for safely calling the local application through the cross-browser based on the domestic operating system according to claim 1, wherein: in the step 1, the middleware service requests the application system server through HTTP at regular time, whether a new version of the middleware service exists is detected, if the new version exists, the middleware upgrade package is automatically downloaded from the application system server to a domestic terminal computer, then the middleware service is automatically stopped, the middleware service version is upgraded, and the middleware service is automatically restarted after the middleware service version is upgraded.
3. The method for safely calling the local application through the cross-browser based on the domestic operating system according to claim 1, wherein: in the step 2, the transmission process of the HTTP or WebSocket transmission protocol is encrypted by using the cryptographic SM4 block cipher algorithm.
4. The method for safely calling the local application through the cross-browser based on the domestic operating system according to claim 1, wherein: in the step 2, the browser and the middleware service exchange data in a Json data format.
5. The method for safely calling the local application through the cross-browser based on the domestic operating system according to claim 1, wherein: in the step 2, a browser based on a kernel is further built in the middleware service, and the middleware service can directly call the local application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011229934.4A CN112379938A (en) | 2020-11-06 | 2020-11-06 | Cross-browser safe local application calling method based on domestic operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011229934.4A CN112379938A (en) | 2020-11-06 | 2020-11-06 | Cross-browser safe local application calling method based on domestic operating system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112379938A true CN112379938A (en) | 2021-02-19 |
Family
ID=74579110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011229934.4A Pending CN112379938A (en) | 2020-11-06 | 2020-11-06 | Cross-browser safe local application calling method based on domestic operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112379938A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113949821A (en) * | 2021-09-15 | 2022-01-18 | 长视科技股份有限公司 | Video playing method and device, computer equipment and storage medium |
CN115291968A (en) * | 2022-08-01 | 2022-11-04 | 国投智能科技有限公司 | Service processing method, system and computer equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160156666A1 (en) * | 2010-03-30 | 2016-06-02 | Authentic8, Inc. | Secure web container for a secure online user environment |
CN106790276A (en) * | 2017-02-20 | 2017-05-31 | 山东威尔数据股份有限公司 | A kind of browser-cross data interactive method and device based on browser protocol |
CN110730208A (en) * | 2019-09-16 | 2020-01-24 | 深圳市国信合成科技有限公司 | Local device calling method and device, storage medium and device |
-
2020
- 2020-11-06 CN CN202011229934.4A patent/CN112379938A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160156666A1 (en) * | 2010-03-30 | 2016-06-02 | Authentic8, Inc. | Secure web container for a secure online user environment |
CN106790276A (en) * | 2017-02-20 | 2017-05-31 | 山东威尔数据股份有限公司 | A kind of browser-cross data interactive method and device based on browser protocol |
CN110730208A (en) * | 2019-09-16 | 2020-01-24 | 深圳市国信合成科技有限公司 | Local device calling method and device, storage medium and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113949821A (en) * | 2021-09-15 | 2022-01-18 | 长视科技股份有限公司 | Video playing method and device, computer equipment and storage medium |
CN115291968A (en) * | 2022-08-01 | 2022-11-04 | 国投智能科技有限公司 | Service processing method, system and computer equipment |
CN115291968B (en) * | 2022-08-01 | 2024-02-23 | 国投智能科技有限公司 | Service processing method, system and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019242166A1 (en) | Application update method and system, and computer device and storage medium | |
US20180330362A1 (en) | Payment processing method and apparatus, and intelligent device | |
TWI444216B (en) | Method and apparatus for gaming based on mobile terminal | |
WO2017071207A1 (en) | Application installation method, corresponding apparatus, and application installation system | |
CN102291437A (en) | System and method for realizing application of cross-platform internet | |
US20140258891A1 (en) | Electronic device, storage medium and method for processing information | |
CN102447720A (en) | Method for remotely controlling personal computer (PC) by mobile phone | |
US10404568B2 (en) | Agent manager for distributed transaction monitoring system | |
JP2007528064A (en) | Running unverified programs in a wireless device operating environment | |
CN112379938A (en) | Cross-browser safe local application calling method based on domestic operating system | |
CN102685303B (en) | Communication means and device | |
US20100005476A1 (en) | Mobile electronic device including a portable application and a secured module able to communicate with each other, and associated communication method | |
CN111950001A (en) | Authority control method and system based on H5 application in APP | |
CN107861742A (en) | The operation method and terminal device of a kind of program | |
CN105786511A (en) | Implementation method for terminal device Web application management | |
CN111666199B (en) | Debugging method executed on intelligent terminal and software debugger | |
CN108228457B (en) | Test agent method and device of mobile terminal and computer readable storage medium | |
WO2024087767A1 (en) | Upgrade installation method and apparatus, system, electronic device, and storage medium | |
CN104570967B (en) | Long-range control method and system based on android system | |
CN103823821B (en) | Network data processing method and equipment | |
CN106550021A (en) | The method for pushing and device of PUSH message | |
CN113360172B (en) | Application deployment method, device, computer equipment and storage medium | |
WO2022247226A1 (en) | Applet monitoring method and device | |
CN106778193B (en) | Client and UI interaction method | |
CN202143098U (en) | Intelligent mobile phone open cross-platform system based on cloud computing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210219 |
|
RJ01 | Rejection of invention patent application after publication |