Integrating and cataloguing application programming interfaces for network environments
US-2024385915-A1 · Nov 21, 2024 · US
US9544335B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-9544335-B2 |
| Application number | US-201214355224-A |
| Country | US |
| Kind code | B2 |
| Filing date | Feb 27, 2012 |
| Priority date | Nov 1, 2011 |
| Publication date | Jan 10, 2017 |
| Grant date | Jan 10, 2017 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
The present disclosure provides a method for local calling via a webpage, including that: a local calling operation instruction is serialized, the serialized local calling operation instruction is filled into a webpage as a hyperlink character string, and the webpage is sent to a server or a local operating system; and a browser acquires the webpage from the local operating system or the server according to a model of the operating system local to the browser local to the browser, de-serializes the hyperlink character string in the webpage, and requests, according to an instantiated local calling operation instruction obtained through the de-serialization, the operating system local to the browser to execute a local calling operation indicated by the instantiated local calling operation instruction. The present disclosure further provides a system for local calling via a webpage. With the method and system provided in the present disclosure, a new local calling function may be added without updating any browser code, thereby improving universality of local calling.
Opening claim text (preview).
The invention claimed is: 1. A method for local calling via a webpage, comprising: generating a local calling operation instruction according to an operating system; serializing the local calling operation instruction, filling the serialized local calling operation instruction into a webpage as a hyperlink character string, and sending the webpage to a server or a local operating system; and acquiring, by a browser, the webpage from the local operating system or the server according to a model of an operating system local to the browser, de-serializing, by the browser, the hyperlink character string in the webpage, and requesting, according to an instantiated local calling operation instruction obtained through the de-serialization, the operating system local to the browser to execute a local calling operation indicated by the instantiated local calling operation instruction, wherein the step of serializing the local calling operation instruction is: acquiring a character string composed of a group of keywords and a protocol identifier, wherein the group of keywords comprises a command word pair and one or more parameter word pairs; the command word pair comprises a command word and a value of the command word; each of the one or more parameter word pairs comprises a parameter word and a value of the parameter word; the group of keywords is separated from the protocol identifier by a first separator; each two of the command word pair and the one or more parameter word pairs comprised in the group of keywords are separated by a second separator; the command word and the value of the command word, as well as a parameter word and the value of the parameter word, are separated by a third separator; and the value of the command word corresponds to a local calling operation instruction, the value of a parameter word is used for storing a parameter of a local calling operation indicated by a command word corresponding to the parameter word. 2. The method according to claim 1 , wherein the value of a parameter word is a group of parameter words composed of two or more parameter word pairs, wherein each two of the two or more parameter word pairs are separated by a fourth separator, and each of the two or more parameter word pairs is composed of a second parameter word and a value of the second parameter word separated by a fifth separator. 3. The method according to claim 2 , wherein when one or more of a single quotation mark, a double quotation mark, and the first separator to the fifth separator appear in the value of the command word and/or the value of a keyword, an escape character is added in front of the one or more of the single quotation mark, the double quotation mark, and the first separator to the fifth separator. 4. The method according to claim 1 , wherein the step of de-serializing, by the browser, the hyperlink character string in the webpage comprises: splitting, by the browser, the hyperlink character string into the protocol identifier and the group of keywords according to the first separator; splitting the group of keywords into the command word pair and the one or more parameter word pairs according to the second separator; and then splitting each command word pair into a command word and the value of the command word as well as splitting each of the one or more parameter word pairs into a parameter word and the value of the parameter word according to the third separator. 5. The method according to claim 1 , further comprising: after the step of de-serializing, by the browser, the hyperlink character string in the webpage, determining, by the browser, whether the hyperlink character string is a character string used for a local calling operation according to a protocol identifier obtained through the de-serialization; and when the hyperlink character string is one used for a local calling operation, executing a subsequent operation. 6. The method according to claim 1 , wherein the local calling operation instruction is any of operations of: running a local application program, running a local background service, sending a message to a local application, broadcasting a message to multiple local applications, and acquiring data of a local data source. 7. The method according to claim 1 wherein the webpage is stored in the server, the step of acquiring, by the browser, the webpage from the server according to the model of the operating system local to the browser comprises: sending, by the browser, according to the model of the operating system local to the browser, the server a local-calling-operation acquiring request to acquire the webpage, wherein the local-calling-operation acquiring request comprises at least the model of the operating system local to the browser; and receiving, by the browser, a webpage sent by the server after the server receives the local-calling-operation acquiring request, wherein the webpage corresponds to the model of the operating system local to the browser and comprises the serialized local calling operation instruction. 8. The method according to claim 1 , wherein the local calling operation instruction is running a local application program; the local calling operation instruction further comprises an application program identifier and a parameter transferred to the local application program upon the calling; the step of requesting, by the browser, the operating system local to the browser to execute the local calling operation is: generating, by the browser, according to the application program identifier and the parameter transferred to the local application program upon the calling, a local calling request recognizable to the operating system local to the browser; and sending the operating system local to the browser the local calling request requesting the operating system local to the browser to execute the local application program identified by the application program identifier. 9. The method according to claim 1 , wherein the local calling operation instruction is running a local background service; the local calling operation instruction further comprises a background service identifier and a parameter transferred to the local background service upon the calling; the step of requesting, by the browser, the operating system local to the browser to execute the local calling operation is: generating, by the browser, according to the background service identifier and the parameter transferred to the local background service upon the calling, a local calling request recognizable to the operating system local to the browser; and sending the operating system local to the browser the local calling request, requesting the operating system local to the browser to execute the background service program identified by the background service identifier. 10. The method according to claim 1 , wherein the local calling operation instruction is sending a message to a local application; the local calling operation instruction further comprises an application program identifier or a background service identifier, as well as a local message identifier and a parameter related to the message; the step of requesting, by the browser, the operating system local to the browser to execute the local calling operation includes: sending, by the browser, a local message indicated by the local message identifier to an application program or a background service in the operating system local to the browser corresponding to the application program identifier or the background service identifier, wherein content of the local message is stored in the parameter related to the message. 11. The method according to claim 1 , wherein the local
Executing subprograms · CPC title
Hyperlinking · CPC title
by program, e.g. task dispatcher, supervisor, operating system · CPC title
Remote procedure calls [RPC]; Web services · CPC title
Electricity · mapped topic
Related publications grouped by family.
Answers are generated from the same data shown on this page.