CN106997298B - Application resource acquisition method and device - Google Patents

Application resource acquisition method and device Download PDF

Info

Publication number
CN106997298B
CN106997298B CN201610046014.6A CN201610046014A CN106997298B CN 106997298 B CN106997298 B CN 106997298B CN 201610046014 A CN201610046014 A CN 201610046014A CN 106997298 B CN106997298 B CN 106997298B
Authority
CN
China
Prior art keywords
application
client
server
request message
http
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.)
Active
Application number
CN201610046014.6A
Other languages
Chinese (zh)
Other versions
CN106997298A (en
Inventor
谭保环
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201610046014.6A priority Critical patent/CN106997298B/en
Priority to PCT/CN2017/071148 priority patent/WO2017124976A1/en
Priority to TW106102217A priority patent/TW201732626A/en
Publication of CN106997298A publication Critical patent/CN106997298A/en
Application granted granted Critical
Publication of CN106997298B publication Critical patent/CN106997298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of internet, in particular to an application resource obtaining method and device, and aims to solve the problems that the cost of development and updating of an application system is high, the cost of interaction between a client and a server is high, the efficiency of development and updating of the application system is high, and the efficiency of interaction between the client and the server is low. The embodiment of the application provides a method for acquiring application resources, which comprises the following steps: the client starts an extensible markup language XML analysis engine to execute: sending a hypertext transfer protocol (HTTP) request message for requesting to acquire application resources of a specified application to a server, and receiving an HTTP response message containing an XML text, which is fed back by the server based on the HTTP request message; and analyzing the XML text to obtain the application resources capable of running.

Description

Application resource acquisition method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for acquiring application resources.
Background
In management work for a logistics warehouse, a large number of mobile terminals and in-vehicle terminals are generally used to participate in the work, which requires installation of application systems for the work in the mobile terminals and in-vehicle terminals. The application system installed in the terminal needs to keep synchronous with the server to ensure the uniformity of the operation.
When an application system is developed, the application program code of the client is usually written in C # language or VB language, and the application program code of the server is usually written in JAVA language. Thus, the development of the application system is divided into two parts, which are respectively completed by adopting different languages. Because language isolation exists between the server and the client, interaction needs to be carried out between the server and the client through an interface. After the application resources are updated at the server side, developers are also required to update application program codes written in different languages at the client side.
Because the development language can not be unified between the client and the server, the development and update costs of the application system and the interaction costs between the client and the server are high. Accordingly, the efficiency of developing and updating the application system and the efficiency of interaction between the client and the server are low.
Disclosure of Invention
The embodiment of the application resource acquisition method and device is used for solving the problems that the development and updating cost of an application system is high, the interaction cost between a client and a server is high, the development and updating efficiency of the application system is high, and the interaction efficiency between the client and the server is low.
The embodiment of the application provides a method for acquiring application resources, which comprises the following steps:
the client starts an extensible markup language XML analysis engine to execute:
sending a hypertext transfer protocol (HTTP) request message for requesting to acquire an application resource of a specified application to a server, and receiving an HTTP response message containing an XML text, which is fed back by the server based on the HTTP request message;
and analyzing the XML text to obtain the application resources capable of running.
Optionally, sending a hypertext transfer protocol HTTP request message for requesting to acquire an application resource of the specified application to the server, where the sending includes:
and sending the HTTP request according to the address of the server configured in the XML configuration file of the specified application.
Optionally, the application resources include one or more of the following resources:
setting objects, interface elements, data objects, and action objects.
Optionally, after analyzing the XML text to obtain an application resource capable of running, the method further includes:
running the application resources, and collecting information submitted by a user on the application interface of the specified application and operation behavior information of the user;
and the information submitted by the user and the operation behavior information are contained in an HTTP request message and sent to the server.
Another embodiment of the present application provides an application resource updating method, including:
after receiving a hypertext transfer protocol (HTTP) request message which is sent by a client and used for requesting to acquire application resources of a specified application, a server generates an XML text in an agreed format based on the HTTP request message;
and sending the HTTP response message containing the XML text to the client so that the client analyzes the XML text through an installed analysis engine to obtain the application resource capable of running.
Optionally, after sending the HTTP response message including the XML text to the client, the method further includes:
and receiving an HTTP request message which is sent by the client and contains information submitted by the user on the application interface of the specified application and the operation behavior information of the user, performing logic processing based on the HTTP request message, generating a subsequent XML text, and sending the XML text to the client by containing the XML text in an HTTP response message.
Optionally, generating an XML text based on the HTTP request message includes:
determining one or more of four contents, namely a setting object, an interface element, a data object and an action object, corresponding to an application resource of a specified application requested by the client, and describing each content corresponding to the application resource according to a defined XML language description specification of the content.
The embodiment of the application provides an application resource updating system, which comprises a server and a client;
the client starts an extensible markup language XML analysis engine and sends a hypertext transfer protocol HTTP request message for requesting to acquire application resources of a specified application to a server;
after receiving an HTTP request message sent by the client and used for requesting to acquire application resources of a specified application, the server generates an XML text in an agreed format based on the HTTP request message and sends an HTTP response message containing the XML text to the client;
and after receiving the HTTP response message which is fed back by the server based on the HTTP request message and contains the XML text, the client analyzes the XML text to obtain the application resource which can be operated.
An embodiment of the present application provides an apparatus for acquiring an application resource, including:
the system comprises a receiving and sending module, a sending and receiving module and a sending and receiving module, wherein the receiving and sending module is used for starting an extensible markup language (XML) analysis engine, sending a hypertext transfer protocol (HTTP) request message for requesting to acquire application resources of a specified application to a server, and receiving an HTTP response message which is fed back by the server based on the HTTP request message and contains an XML text;
and the analysis module is used for analyzing the XML text received by the receiving and sending module based on the analysis engine to obtain the application resource capable of running.
Another embodiment of the present application provides an application resource updating apparatus, including:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a hypertext transfer protocol (HTTP) request message which is sent by a client and used for requesting to acquire application resources of a specified application;
the generating module is used for generating an XML text in an agreed format based on the HTTP request message received by the receiving module;
and the sending module is used for sending the HTTP response message containing the XML text generated by the generating module to the client so that the client analyzes the XML text through an installed analysis engine to obtain the application resource capable of running.
The embodiment of the application provides a new mode for developing and updating application resources at a client: the server generates XML text in the agreed format based on the HTTP request of the client. And adopting a parsing engine at the client to parse the XML text into application resources capable of running. The method unifies the development language, and after the server releases the updated application resources, the client can be directly updated as long as the HTTP connection is established between the client and the server, and each client does not need to download a new application system specially to reinstall the update. Therefore, the method can reduce the cost of developing and updating the application system and the cost of communication and joint debugging between the server and the client. Correspondingly, the efficiency of developing and updating the application system and the efficiency of interaction between the client and the server are improved.
Drawings
Fig. 1 is a schematic structural diagram of an application resource acquisition system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of application resource interaction between a server and a client according to the present application;
fig. 3 is a flowchart of a method for acquiring application resources according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a parsing engine based application resource acquisition corresponding to the process of FIG. 3;
FIG. 5 is a schematic illustration of an application interface of a resolved client;
fig. 6 is a schematic structural diagram of an apparatus for acquiring application resources according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus for acquiring application resources according to an embodiment of the present application.
Detailed Description
As shown in fig. 1, a schematic structural diagram of an application resource obtaining system 10 provided in the embodiment of the present application includes a server 11 and a client 12; the client 12 may be a terminal used by a warehouse manager to perform warehouse management operations (e.g., updating the contents and quantity of goods in a warehouse, updating delivery information, etc.).
The client 12 starts an extensible markup language XML analysis engine and sends a hypertext transfer protocol HTTP request message for requesting to acquire an application resource of a specified application to the server 11;
after receiving an HTTP request message sent by a client 12 for requesting to acquire an application resource of a specified application, a server 11 generates an XML text in an agreed format based on the HTTP request message, and sends an HTTP response message containing the XML text to the client;
after receiving the HTTP response message including the XML text fed back by the server 11 based on the HTTP request message, the client 12 parses the XML text to obtain an application resource capable of running.
Therefore, the embodiment of the application innovatively provides a new mode for developing and updating application resources at a client: the server generates an Extensible Markup Language (XML) text in an agreed format based on a Hypertext Transfer Protocol (HTTP) request of the client. And adopting a parsing engine at the client to parse the XML text into application resources capable of running. The method unifies the development language, and after the server releases the updated application resources, the client can be directly updated as long as the HTTP connection is established between the client and the server, and each client does not need to download a new application system specially to reinstall the update. Therefore, the method can reduce the cost of developing and updating the application system and the cost of communication and joint debugging between the server and the client. Correspondingly, the efficiency of developing and updating the application system and the efficiency of interaction between the client and the server are improved.
Fig. 2 is a schematic diagram illustrating application resource interaction between a server and a client according to the present application. The server generates an XML text containing various agreed formats of application resources according to an HTTP request of the client, wherein the application resources comprise a Setting object, a User Interface (UI) element, a Data (Data) object, an Action (Action) element and the like. After receiving the XML text, the client analyzes the XML text based on the installed analysis engine to obtain various application resources, and the analyzed application resources are operated. And then, the server and the client continuously adopt the mode of generating the XML text at the server and analyzing at the client to perform subsequent interaction. The analysis engine of the client is adopted, the updating operation of the client can be completely controlled by the background, the client interface is displayed through dynamic rendering, a client application system does not need to be specially developed, and the client and the server do not need to carry out interface joint debugging and communication.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
Fig. 3 is a flowchart of a method for acquiring an application resource according to an embodiment of the present application, and fig. 4 is a schematic diagram of acquiring an application resource based on a parsing engine.
In the embodiment of the application, the application resource of the client is abstracted into four parts, namely a setting object, an interface element, a data object and an action object, wherein the setting object is used for describing Global and macroscopic operations, such as whether a Global Positioning System (GPS) is started or not, whether client version information is automatically sent or not, and the like. The interface element refers to a functional interface of an application, and an application system generally has a plurality of functional interfaces. The data object refers to data in a functional interface of an application, for example, a functional interface includes a drop-down box, and the data in the drop-down box refers to the data object. The action object refers to an operation action executed by the client, such as moving an interface focus, playing a video file, selecting a text box, and the like. Then, based on the application resources of the divided parts, an XML language description specification (see the last example of the embodiment) is made, so as to achieve the agreed understanding between the server and the client, and facilitate the parsing engine of the client to parse the XML text. The client obtains the application resource, that is, the flow of the client obtaining the application resource based on the analysis of the analysis engine is as follows:
s301: the client starts an XML analysis engine and sends HTTP request information for requesting to acquire the application resources of the appointed application to the server.
Here, the client may transmit the HTTP request according to an address of the server configured in the XML configuration file of the designated application.
In the specific implementation, firstly, the parsing engine is installed at the client, an XML configuration file of application setting (AppSetting) is deployed under an installation directory for configuring an address for initializing a connection server, the parsing engine is started, an HTTP request message (HTTP request) is sent to the server according to the configuration file, and the server returns an XML text in a default format to the client based on the HTTP request.
S302: after receiving an HTTP request message sent by a client and used for requesting to acquire application resources of a specified application, a server generates an XML text in an agreed format based on the HTTP request message.
As shown in fig. 4, after receiving an HTTP request from a client, a server may first determine whether the HTTP request is valid, for example, determine whether the HTTP request is from a parsing engine of the client, and if the HTTP request is valid, determine one or more of four contents, that is, a setting object, an interface element, a data object, and an action object, corresponding to an application resource of a specific application requested by the client, and describe, for each content corresponding to the application resource, the content according to an XML language description specification of the content defined in a template engine development specification and an XML rule specification. Here, the contents described in the template engine development specification and the XML rule specification are the custom XML language description specification. In the figure, the service logic processing interface is a background service code stored in the server and used for performing background logic processing.
S303: the server sends an HTTP response message containing XML text to the client.
As shown in fig. 4, after generating an XML text according to the XML language specification, the server carries the XML text in an HTTP response message (HTTP response) and sends the XML text to the client.
S304: after receiving the HTTP response message containing the XML text fed back by the server, the client analyzes the XML text through the installed analysis engine to obtain the application resource capable of running.
As shown in FIG. 4, XML text contains four parts: the "WMPSeting", "WMPUI", "WMPData", and "WMPAction" correspond to the parsed Setting object, UI element, Data object, and Action object, respectively. After the parsed UI elements and Data objects are obtained, the UI may be filled with Data objects and encapsulated for subsequent submission to a server. After the analyzed Action object is obtained, the client can execute the corresponding Action. The Action object may also contain predefined events, such as pressing enter key in a text box to play a piece of music, etc. The workbench window in the figure refers to an interface opened by default after the analysis engine is started, and all subsequent analysis results are attached to the workbench window.
S305: and the client runs the analyzed application resources through the analysis engine and collects information submitted by the user on the application interface of the specified application and the operation behavior information of the user.
As shown in fig. 4, the client runs the analyzed application resource, that is, displays the application interface and the data in the interface on the workbench window, responds to the action object indicated by the server, and then the user operates the application, inputs or selects the relevant data in the UI, executes the relevant operation behavior, collects the information (interface parameter information) submitted by the user and the operation behavior information of the user, and carries the information in the http request to send to the server.
S306: the client side includes the information submitted by the user and the operation behavior information in the HTTP request message through the analysis engine and sends the HTTP request message to the server.
As shown in fig. 5, the parsing engine parses the XML text returned by the server to form a client application, and fig. 5 is an operation effect diagram. For example, XML text < TextBox name ═ account "width ═ 68%," for ═ lognform "submitevent ═ EnterPress" selected ═ true "href ═ http:// mp.date.taobao.net/rf/login.htmedethod ═ initwall" >/TextBox ", indicates that the client generates an input box, and when a carriage return key is pressed in the input box, a commit action is triggered, and the commit address is an address defined by a Hypertext Reference (href) attribute of the text box (http:// mp.data.taobao.rf/login.htmedethod.html ═ inite), which is defined in advance by the developer. In addition, the user can operate the delivery action of the page, such as clicking a button (button), at which time, the parsing engine automatically collects the information submitted by the user and sends the information to the server.
S307: after receiving an HTTP request message which is sent by a client and contains information submitted by a user on an application interface of a designated application and operation behavior information of the user, the server performs logic processing based on the HTTP request message to generate a subsequent XML text.
S308: and the generated subsequent XML text is contained in an HTTP response message and is sent to the client. Returning to S304.
As shown in fig. 4, the server executes background logic processing based on http request submitted by the client, generates an XML text based on the processed result and XML language description specifications in the template engine development specification and the XML rule specification, carries the XML text in http response, and sends the XML text to the client. And the client continuously adopts the analysis engine to carry out analysis, so that subsequent application resources are obtained and presented to the user. For example, after the client initially sends an http request, the server returns a login page of the application to the client, and after the user clicks a login button, the server returns a logged-in page to the client, where the logged-in page is a subsequent application resource.
By adopting the analysis engine of the Client provided by the embodiment of the application, the updating operation of the Client can be completely controlled by the background, the interface of the Client is dynamically rendered, the traditional Client/Server (C/S) mode of the application system is converted into a Browser/Server (B/S) mode, the Client application system does not need to be specially developed, and the Client and the Server do not need to carry out interface joint debugging and communication, so that the developing and updating efficiency of the application system can be greatly improved, and the cost is saved. In addition, the embodiment of the application has high expandability, and if a novel terminal device appears, all functions of the back end can be reused only by developing a resolution engine of a related Operating System (OS).
In the embodiment of the present application, the specification of the description language is exemplified as follows:
<WMP>
< | A! For global macro operations, such as clearing screens, clearing shortcut keys, setting whether UDP interception is enabled, url which needs to be accessed when a program is exited, etc. - >)
<WMPSetting>
</WMPSetting>
< | A! - -xml for mapping interface elements- - > -
<WMPUI>
</WMPUI>
< | A! - - -data for binding- - > -)
<WMPData>
</WMPData>
< | A! Operations performed after the resolution is complete, such as moving the focus, playing audio, popping up a prompt box, and caching data on the device >
<WMPAction>
</WMPAction>
</WMP>
Common UI element specification examples
<HBox height="200"width="80%"></HBox>
Representing containers defining a horizontal layout in which elements are laid out horizontally
< Label text ═ user name: "top ═ 2" ("width ═ 28%" > < Label >)
Representing definition of a display Label component
<TextBox name="password"width="68%"for="loginForm"passwordchar="*"selectall="true"></TextBox>
Representation definition of a text entry box
<MoveFocus to="account"></MoveFocus>
Representing actions defining a moving input focus
< Button text ═ login "width ═ 49%," for ═ logic F orm "height ═ 25 ═ submit ═ href ═ http:// w.c. caineio.com/rf/logic. htmethod ═ logic" >/Button >
The representation defines a button component to be submitted to the server.
Based on the same inventive concept, the embodiment of the present application further provides a device for acquiring application resources corresponding to the method for acquiring application resources, and because the principle of solving the problem of the device is similar to the method for acquiring application resources in the embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 6, a schematic structural diagram of an apparatus for acquiring an application resource provided in the embodiment of the present application includes:
a transceiving module 61, configured to start an extensible markup language XML parsing engine, send a hypertext transfer protocol HTTP request message for requesting to acquire an application resource of a specified application to a server, and receive an HTTP response message containing an XML text, which is fed back by the server based on the HTTP request message;
and the parsing module 62 is configured to parse the XML text received by the transceiver module based on the parsing engine to obtain an application resource capable of running.
Optionally, the transceiver module 61 is specifically configured to:
and sending the HTTP request according to the address of the server configured in the XML configuration file of the specified application.
Optionally, the application resources include one or more of the following resources:
setting objects, interface elements, data objects, and action objects.
Optionally, the parsing module 62 is further configured to:
running the application resource through the parsing engine;
the transceiver module 61 is further configured to:
collecting information submitted by a user on an application interface of the specified application and operation behavior information of the user; and the information submitted by the user and the operation behavior information are contained in an HTTP request message and sent to the server.
As shown in fig. 7, a schematic structural diagram of an apparatus for acquiring application resources according to another embodiment of the present application includes:
a receiving module 71, configured to receive a hypertext transfer protocol HTTP request message sent by a client for requesting to acquire an application resource of a specified application;
a generating module 72, configured to generate an XML text in an agreed format based on the HTTP request message received by the receiving module 71;
a sending module 73, configured to send an HTTP response message including the XML text generated by the generating module 72 to the client, so that the client parses the XML text through an installed parsing engine, and obtains an application resource that can run.
Optionally, the receiving module 71 is further configured to:
after the sending module 73 sends the HTTP response message containing the XML text to the client, receiving an HTTP request message sent by the client and containing information submitted by a user on an application interface of the specified application and operation behavior information of the user;
the generation module 72 is further configured to: and carrying out logic processing based on the HTTP request message, generating a subsequent XML text, including the subsequent XML text in an HTTP response message, and sending the HTTP response message to the client.
Optionally, the generating module 72 is specifically configured to:
determining one or more of four contents, namely a setting object, an interface element, a data object and an action object, corresponding to an application resource of a specified application requested by the client, and describing each content corresponding to the application resource according to a defined XML language description specification of the content.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (13)

1. An application resource acquisition method, characterized in that the method comprises:
the client starts an extensible markup language XML analysis engine to execute:
sending a hypertext transfer protocol (HTTP) request message for requesting to acquire an application resource of a specified application to a server, and receiving an HTTP response message containing an XML text, which is fed back by the server based on the HTTP request message;
analyzing the XML text to obtain application resources capable of running;
wherein the application resources include one or more of the following:
setting objects, interface elements, data objects and action objects of the specified application; wherein, the setting object is used for describing the operation of the global macro; the interface element is used for describing a functional interface of the application; the data object is used for describing data in a functional interface of the application; the action object is used for describing the operation action executed by the client.
2. The method of claim 1, wherein sending a hypertext transfer protocol (HTTP) request message to a server requesting acquisition of an application resource of a specified application comprises:
and sending the HTTP request according to the address of the server configured in the XML configuration file of the specified application.
3. The method of claim 1, wherein after parsing the XML text to obtain the application resources that can be run, further comprising:
running the application resources, and collecting information submitted by a user on the application interface of the specified application and operation behavior information of the user;
and the information submitted by the user and the operation behavior information are contained in an HTTP request message and sent to the server.
4. An application resource acquisition method, characterized in that the method comprises:
after receiving a hypertext transfer protocol (HTTP) request message which is sent by a client through an analysis engine and used for requesting to acquire application resources of a specified application, a server generates an XML text in an agreed format based on the HTTP request message;
sending an HTTP response message containing the XML text to the client so that the client analyzes the XML text through an installed analysis engine to obtain an application resource capable of running;
wherein the application resources include one or more of the following: setting objects, interface elements, data objects and action objects of the specified application; wherein, the setting object is used for describing the operation of the global macro; the interface element is used for describing a functional interface of the application; the data object is used for describing data in a functional interface of the application; the action object is used for describing the operation action executed by the client.
5. The method of claim 4, wherein after sending the HTTP response message containing the XML text to the client, further comprising:
and receiving an HTTP request message which is sent by the client and contains information submitted by the user on the application interface of the specified application and the operation behavior information of the user, performing logic processing based on the HTTP request message, generating a subsequent XML text, and sending the XML text to the client by containing the XML text in an HTTP response message.
6. The method of claim 4 or 5, wherein generating XML text based on the HTTP request message comprises:
determining one or more of four contents, namely a setting object, an interface element, a data object and an action object, corresponding to an application resource of a specified application requested by the client, and describing each content corresponding to the application resource according to a defined XML language description specification of the content.
7. An application resource acquisition system is characterized by comprising a server and a client;
the client starts an extensible markup language XML analysis engine and sends a hypertext transfer protocol HTTP request message for requesting to acquire application resources of a specified application to a server;
after receiving an HTTP request message sent by the client and used for requesting to acquire application resources of a specified application, the server generates an XML text in an agreed format based on the HTTP request message and sends an HTTP response message containing the XML text to the client;
after receiving an HTTP response message which is fed back by the server based on the HTTP request message and contains an XML text, the client analyzes the XML text to obtain an application resource which can be operated;
wherein the application resources include one or more of the following: setting objects, interface elements, data objects and action objects of the specified application; wherein, the setting object is used for describing the operation of the global macro; the interface element is used for describing a functional interface of the application; the data object is used for describing data in a functional interface of the application; the action object is used for describing the operation action executed by the client.
8. An apparatus for acquiring application resources, the apparatus comprising:
the system comprises a receiving and sending module, a sending and receiving module and a sending and receiving module, wherein the receiving and sending module is used for starting an extensible markup language (XML) analysis engine, sending a hypertext transfer protocol (HTTP) request message for requesting to acquire application resources of a specified application to a server, and receiving an HTTP response message which is fed back by the server based on the HTTP request message and contains an XML text;
the analysis module is used for analyzing the XML text received by the receiving and sending module based on the analysis engine to obtain an application resource capable of running; wherein the application resources include one or more of the following: setting objects, interface elements, data objects and action objects of the specified application; wherein, the setting object is used for describing the operation of the global macro; the interface element is used for describing a functional interface of the application; the data object is used for describing data in a functional interface of the application; the action object is used for describing the operation action executed by the client.
9. The apparatus as claimed in claim 8, wherein said transceiver module is specifically configured to:
and sending the HTTP request according to the address of the server configured in the XML configuration file of the specified application.
10. The apparatus of claim 8, wherein the parsing module is further to:
running the application resource through the parsing engine;
the transceiver module is further configured to:
collecting information submitted by a user on an application interface of the specified application and operation behavior information of the user; and the information submitted by the user and the operation behavior information are contained in an HTTP request message and sent to the server.
11. An apparatus for acquiring application resources, the apparatus comprising:
the receiving module is used for receiving a hypertext transfer protocol (HTTP) request message which is sent by a client through an analysis engine and is used for requesting to acquire application resources of a specified application;
the generating module is used for generating an XML text in an agreed format based on the HTTP request message received by the receiving module;
the sending module is used for sending an HTTP response message containing the XML text generated by the generating module to the client so that the client analyzes the XML text through an installed analysis engine to obtain an application resource capable of running; wherein the application resources include one or more of the following: setting objects, interface elements, data objects and action objects of the specified application; wherein, the setting object is used for describing the operation of the global macro; the interface element is used for describing a functional interface of the application; the data object is used for describing data in a functional interface of the application; the action object is used for describing the operation action executed by the client.
12. The apparatus of claim 11, wherein the receiving module is further configured to:
after the sending module sends the HTTP response message containing the XML text to the client, receiving an HTTP request message which is sent by the client and contains information submitted by a user on an application interface of the specified application and operation behavior information of the user;
the generation module is further to: and carrying out logic processing based on the HTTP request message, generating a subsequent XML text, including the subsequent XML text in an HTTP response message, and sending the HTTP response message to the client.
13. The apparatus of claim 11 or 12, wherein the generating module is specifically configured to:
determining one or more of four contents, namely a setting object, an interface element, a data object and an action object, corresponding to an application resource of a specified application requested by the client, and describing each content corresponding to the application resource according to a defined XML language description specification of the content.
CN201610046014.6A 2016-01-22 2016-01-22 Application resource acquisition method and device Active CN106997298B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610046014.6A CN106997298B (en) 2016-01-22 2016-01-22 Application resource acquisition method and device
PCT/CN2017/071148 WO2017124976A1 (en) 2016-01-22 2017-01-13 Method and device for acquiring application resource
TW106102217A TW201732626A (en) 2016-01-22 2017-01-20 Method and device for acquiring application resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610046014.6A CN106997298B (en) 2016-01-22 2016-01-22 Application resource acquisition method and device

Publications (2)

Publication Number Publication Date
CN106997298A CN106997298A (en) 2017-08-01
CN106997298B true CN106997298B (en) 2021-08-06

Family

ID=59361399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610046014.6A Active CN106997298B (en) 2016-01-22 2016-01-22 Application resource acquisition method and device

Country Status (3)

Country Link
CN (1) CN106997298B (en)
TW (1) TW201732626A (en)
WO (1) WO2017124976A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150984B (en) * 2018-07-27 2021-11-02 平安科技(深圳)有限公司 Method and device for acquiring data resources
CN111666074B (en) * 2019-03-05 2024-04-09 华为技术有限公司 Web application customization method, related device and system
CN112152915A (en) * 2019-06-28 2020-12-29 北京沃东天骏信息技术有限公司 Message forwarding network system and message forwarding method
CN110457027A (en) * 2019-08-05 2019-11-15 深圳科蓝金信科技发展有限公司 A kind of client end interface and the instant management method of content
CN110764805B (en) * 2019-10-28 2024-01-23 腾讯科技(深圳)有限公司 Client non-inductive upgrading method, device, terminal and storage medium
CN112905356B (en) * 2019-12-04 2023-08-04 腾讯科技(深圳)有限公司 Service control system, method and device
CN111343236A (en) * 2020-02-07 2020-06-26 广州极晟网络技术有限公司 Method, device and communication system for communication between server and client
CN111949419A (en) * 2020-07-17 2020-11-17 上海淇馥信息技术有限公司 Cross-environment resource acquisition method and device and electronic equipment
CN112422566B (en) * 2020-11-18 2022-10-14 青岛海尔科技有限公司 Remote call processing method and device, storage medium and electronic device
CN113490256A (en) * 2021-07-01 2021-10-08 建信金融科技有限责任公司 Front-end and back-end joint debugging method, device, medium and equipment
CN114374726B (en) * 2022-01-07 2024-10-11 阿里巴巴(中国)有限公司 Cloud desktop processing method and system
CN114697306B (en) * 2022-02-24 2024-03-22 青岛海尔科技有限公司 HTTP client and data communication method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441631A (en) * 2007-11-19 2009-05-27 上海新纳广告传媒有限公司 Data access method for asynchronous web page browsing
CN101883086A (en) * 2010-03-15 2010-11-10 浪潮集团山东通用软件有限公司 Method for realizing Comet function under ASP.NET environment
CN103577197A (en) * 2013-11-18 2014-02-12 深圳市远行科技有限公司 Method for achieving android application program dynamic form
CN105119944A (en) * 2015-09-23 2015-12-02 北京金山安全软件有限公司 Application starting method and related device
CN105187888A (en) * 2015-07-30 2015-12-23 深圳创维-Rgb电子有限公司 Method and system for realizing creation of smart TV interface section element

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763499B1 (en) * 1999-07-26 2004-07-13 Microsoft Corporation Methods and apparatus for parsing extensible markup language (XML) data streams
US20040268344A1 (en) * 2001-03-08 2004-12-30 Sridhar Obilisetty Centrally managed and distributed applications
CN1487446A (en) * 2003-06-24 2004-04-07 深圳市华磊网络技术有限公司 Method for the server and to supply user's interface for Internet explorer client end
CN102104578A (en) * 2009-12-16 2011-06-22 浙江省公众信息产业有限公司 Method for realization of WAP (Wireless Application Protocol) browsing under BREW (Binary Runtime Environment for Wireless) platform
CN102480501A (en) * 2010-11-26 2012-05-30 华为终端有限公司 Application resource downloading method and associated equipment
CN103942225B (en) * 2013-01-23 2018-06-08 阿里巴巴集团控股有限公司 A kind of resource transfer method, client and the system of mixed type applications client
CN104572035B (en) * 2013-10-11 2018-05-04 北大方正集团有限公司 The dynamic creation method and dynamic generating system of web page code
CN104007967B (en) * 2014-05-21 2017-09-12 广州华多网络科技有限公司 A kind of user interface creating method and device based on extensible markup language
CN105224344A (en) * 2014-05-28 2016-01-06 济南政和科技有限公司 A kind of software upgrading file configuration method realized based on XML

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441631A (en) * 2007-11-19 2009-05-27 上海新纳广告传媒有限公司 Data access method for asynchronous web page browsing
CN101883086A (en) * 2010-03-15 2010-11-10 浪潮集团山东通用软件有限公司 Method for realizing Comet function under ASP.NET environment
CN103577197A (en) * 2013-11-18 2014-02-12 深圳市远行科技有限公司 Method for achieving android application program dynamic form
CN105187888A (en) * 2015-07-30 2015-12-23 深圳创维-Rgb电子有限公司 Method and system for realizing creation of smart TV interface section element
CN105119944A (en) * 2015-09-23 2015-12-02 北京金山安全软件有限公司 Application starting method and related device

Also Published As

Publication number Publication date
WO2017124976A1 (en) 2017-07-27
CN106997298A (en) 2017-08-01
TW201732626A (en) 2017-09-16

Similar Documents

Publication Publication Date Title
CN106997298B (en) Application resource acquisition method and device
US11144711B2 (en) Webpage rendering method, device, electronic apparatus and storage medium
US10048948B2 (en) Optimized retrieval of custom string resources
CN108614776B (en) Dynamic construction method and system for cross-language protocol test request
CN110806863A (en) Interface document generation method and device, electronic equipment and storage medium
EP2220571B1 (en) Method and apparatus for providing api service and making api mash-up, and computer readable recording medium thereof
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US11635974B2 (en) Providing a different configuration of added functionality for each of the stages of predeployment, deployment, and post deployment using a layer of abstraction
US20140082511A1 (en) Method and system for emulating desktop software applications in a mobile communication network
US9934007B2 (en) Method for operating tool in working environment and machine using such method
WO2015047467A1 (en) Api notebook tool
CN102567400B (en) Method for realizing Web visit and Web server
CN106815055B (en) Method and system for dynamic layout of mobile application
CN102385580A (en) Method and device for customizing webpage contents
CN111026634A (en) Interface automation test system, method, device and storage medium
US20170257464A1 (en) Deployment of integrative html-based engine from an edge server
US10268456B2 (en) Standardized approach to contextual code identification in editors and IDEs
KR20130085856A (en) Method and apparatus for creating automatically a widget to invoke heterogeneous web services in a composite application
US20140188916A1 (en) Combining odata and bpmn for a business process visibility resource model
CN110874278A (en) Embedding method of external system, workflow system, device and storage medium
CN113535175A (en) Application program front-end code generation method and device, electronic equipment and medium
Miravet et al. Framework for the declarative implementation of native mobile applications
US20230350700A1 (en) Snapshot capture of computing device user interfaces
CN107179916B (en) A kind of application development method, apparatus, equipment and development frame system
US20220413813A1 (en) Method and system for automating development of white labeled measurement application

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
TA01 Transfer of patent application right

Effective date of registration: 20180412

Address after: Four story 847 mailbox of the capital mansion of Cayman Islands, Cayman Islands, Cayman

Applicant after: CAINIAO SMART LOGISTICS HOLDING Ltd.

Address before: Cayman Islands Grand Cayman capital building, a four storey No. 847 mailbox

Applicant before: ALIBABA GROUP HOLDING Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant