CN104267974A - Method and device for calling business interface - Google Patents

Method and device for calling business interface Download PDF

Info

Publication number
CN104267974A
CN104267974A CN201410568960.8A CN201410568960A CN104267974A CN 104267974 A CN104267974 A CN 104267974A CN 201410568960 A CN201410568960 A CN 201410568960A CN 104267974 A CN104267974 A CN 104267974A
Authority
CN
China
Prior art keywords
business entity
data
information
described business
server
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.)
Granted
Application number
CN201410568960.8A
Other languages
Chinese (zh)
Other versions
CN104267974B (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.)
Guoxing Network Co ltd
Original Assignee
Xinhua Reed (beijing) Network Technology Co 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 Xinhua Reed (beijing) Network Technology Co Ltd filed Critical Xinhua Reed (beijing) Network Technology Co Ltd
Priority to CN201410568960.8A priority Critical patent/CN104267974B/en
Publication of CN104267974A publication Critical patent/CN104267974A/en
Application granted granted Critical
Publication of CN104267974B publication Critical patent/CN104267974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for calling a business interface. The method comprises the following steps of: sending update data command information to the server of a business entity according to the configuration information of the business entity; receiving the update data of the business entity returned according to the update data command information by the server of the business entity; according to the configuration information of the business entity, carrying out data analysis on the returned update data of the business entity according to the configuration of the business entity, and analyzing the returned update data of the business entity into a data format capable of being recognized by the business entity; sending the analyzed update data of the business entity capable of being recognized by the business entity to the business entity. The method and the device solve the technical problems of low development efficiency and poor flexibility caused by the fact that different implementation schemes are needed to be compiled for different business entities realized on application software in the development process of application software in the prior art.

Description

The call method of business interface and device
Technical field
The present invention relates to computer realm, in particular to a kind of call method and device of business interface.
Background technology
Along with the development increasingly of modern development of Mobile Internet technology, client and server end mutual more and more important.Most mobile client in mutual with server end, is all by calling the server end business interface corresponding with mobile client, the function mutually transmitted with the information realizing client and server.
Nowadays, the function of mobile client and scale day by day complicated.Under most cases, application software APP can according to the demand of user with for the continuous more New function of the object optimizing application software Consumer's Experience.In this situation, whenever adding a New function for application software or in an amendment existing function, the function for this New function or amendment is all needed again to write the call method of network request, the analytic method of return data and cross-thread synchrodata method, not only need to expend very large time and human cost, be also unfavorable for the lifting of production efficiency.So, in the urgent need to a kind of function setting up server end interface interchange fast.
For needing the different business entity for application software realizes to write different implementations in prior art in applied software development process, cause development efficiency low, the problem of very flexible.
Summary of the invention
Embodiments provide a kind of call method and device of business interface, in applied software development process, the different business entity for application software realizes is needed to write different implementations at least to solve prior art, cause development efficiency low, the technical matters of very flexible.
According to an aspect of the embodiment of the present invention, provide a kind of call method of business interface, comprise and send renewal data request information according to Business Entity configuration information to Business Entity server; Receive Business Entity server according to the more new data upgrading the Business Entity that data request information returns; According to Business Entity configuration information, carrying out Data Analysis to the more new data of the Business Entity returned according to Business Entity configuration information, is the data layout that Business Entity can identify by the renewal Data Analysis of the Business Entity returned; The more new data resolving to the Business Entity that Business Entity can identify is sent to Business Entity.
According to the another aspect of the embodiment of the present invention, additionally provide a kind of calling device of business interface, comprising: request module, for sending renewal data request information according to Business Entity configuration information to Business Entity server; Receiver module, for receiving Business Entity server according to the more new data upgrading the Business Entity that data request information returns; Parsing module, for according to Business Entity configuration information, carrying out Data Analysis to the more new data of the Business Entity returned according to Business Entity configuration information, is the data layout that Business Entity can identify by the renewal Data Analysis of the Business Entity returned; Synchronization module, for resolving to the renewal data syn-chronization of the Business Entity that Business Entity can identify to Business Entity.
In embodiments of the present invention, adopt and send renewal data request information according to Business Entity configuration information to Business Entity server; Receive Business Entity server according to the more new data upgrading the Business Entity that data request information returns; According to Business Entity configuration information, carrying out Data Analysis to the more new data of the Business Entity returned according to Business Entity configuration information, is the data layout that Business Entity can identify by the renewal Data Analysis of the Business Entity returned; The more new data resolving to the Business Entity that Business Entity can identify is sent to the mode of Business Entity, and then solve prior art in applied software development process, need the different business entity for application software realizes to write different implementations, cause development efficiency low, the technical matters of very flexible.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the call method of a kind of business interface according to the embodiment of the present invention one;
Fig. 2 is the process flow diagram of the call method of a kind of preferred a kind of business interface according to the embodiment of the present invention one;
Fig. 3 is the process flow diagram of the call method of a kind of preferred a kind of business interface according to the embodiment of the present invention one;
Fig. 4 is the process flow diagram of the call method of a kind of preferred a kind of business interface according to the embodiment of the present invention one;
Fig. 5 is the operation flow schematic diagram of the call method of a kind of optional business interface according to the embodiment of the present invention one;
Fig. 6 is the calling device structural representation of a kind of business interface according to the embodiment of the present invention two;
Fig. 7 is the calling device structural representation according to the preferred a kind of business interface of the embodiment of the present invention two; And
Fig. 8 is the calling device structural representation according to the preferred a kind of business interface of the embodiment of the present invention two.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to the embodiment of the present invention, provide a kind of embodiment of call method of business interface, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
The embodiment of the method that the embodiment of the present application one provides can perform in mobile intelligent terminal, arithmetic unit with the intelligent terminal of touch sensitive screen.To operate on mobile intelligent terminal, Fig. 1 is the process flow diagram of the call method of a kind of business interface of the embodiment of the present invention.As shown in Figure 1, the call method of this business interface can implementation step as follows:
Step S12, sends renewal data request information according to Business Entity configuration information to Business Entity server.
In above-mentioned steps S12, business module, according to the configuration information of Business Entity, sends the information upgrading request of data for obtaining Business Entity to Business Entity server.
Step S14, receives Business Entity server according to the more new data upgrading the Business Entity that data request information returns.
In above-mentioned steps S14, server end is receiving the renewal data request information of Business Entity, according to the content upgrading data request information, sends the content corresponding with the content upgrading data request information.
Step S16, according to Business Entity configuration information, carrying out Data Analysis to the more new data of the Business Entity returned according to Business Entity configuration information, is the data layout that Business Entity can identify by the renewal Data Analysis of the Business Entity returned.
In above-mentioned steps S16, by Business Entity configuration information, according to the content in configuration information, Data Analysis is carried out to the more new data of the Business Entity returned.The renewal data message returned is resolved to the data layout that Business Entity can directly read.
Step S18, will resolve to the renewal data syn-chronization of the Business Entity that Business Entity can identify to Business Entity.
In above-mentioned steps S18, renewal data message is resolved to Business Entity after the information of Direct Recognition, can be synchronized in Business Entity, carry out for Business Entity.
In the embodiment of the present application one, be a kind of automatically according to the method that physical arrangements information (entity configuration) is initiated the data call request that Business Entity upgrades to Business Entity server.The method is resolved by the renewal data message returned server service property server, and the renewal data message parsed is synchronized in corresponding thread, uses for Business Entity.Wherein, Business Entity can have multiple, and these different Business Entities can use identical calling logic, resolution logic and thread synchronization logic.This method is by the whole Business Entity of scanning, and after setting up the corresponding relation of Business Entity and Business Entity server, the data type of the renewal data message returned according to Business Entity server goes to select in physical arrangements information corresponding to this data type.Finally the renewal data message returned is resolved to the example (instance) that can be used for Business Entity freely to use.In this way, eliminate the method for the request of writing of different business entity and parsing when exploitation, avoid code overlapping development, greatly save time and the cost of exploitation.In actual applications, Business Entity server can be independent server, also can be some in multiple corresponding with the Business Entity interface that server provides.
Here, above-mentioned steps can be put into three abstract modules and carry out, three abstract modules comprise: abstract service module, abstract data parsing module and abstract network module.
Wherein, abstract service module, is responsible for the data type of collecting Business Entity, for business transferring physical arrangements information and data type.Heavy business consuming time can be put into asynchronous thread to perform, avoid blocking main thread for a long time.And be responsible for the data transmission of sub-thread and front-end interface thread (UI thread), facilitate other functions to use.The Data Analysis function of the data communication facility of abstract network module and abstract data solution module organically combines and it is encapsulated in the private method of abstract service module by this module, externally only exposes using method, greatly strengthen the extensibility of abstract service.
Wherein, abstract data parsing module, is responsible for resolving the data transmitted between Business Entity and Business Entity server.This module abstracts Data Analysis interface, can resolve various data layout (including but not limited to JSON, XML, binary stream, user-defined format etc.) easily.This module does not rely on abstract network module, does not relate to any business, convenient data message of resolving various different Business Entity.Itself also has nothing to do with the data layout of reality, and takes out expansion interface with the parsing facilitating expansion to support more data form.
Wherein, abstract network module, is responsible for the network call of Business Entity and Business Entity server.This module abstracts goes out network request interface, network request can be based upon completely on the network plan (such as: HTTP, SOCKET) of existing maturation with this.This module does not rely on abstract data parsing module, does not relate to any business yet.Can the very convenient network request setting up different business on this basis.
The application program that the step S12 that the above embodiments of the present application one provide to step S18 can run on mobile intelligent terminal uses, in implementation process, a kind of embodiment of the application program run on mobile intelligent terminal in above-described embodiment one, it can be the news client run on mobile intelligent terminal, below just for this news client, above-described embodiment one is described in detail.
In news client, multiple news column can be there is, such as: hot news plate, financial and economic news column, science and technology news column, sports news column etc.Wherein each news column can regard it as a Business Entity.Each news column has respective configuration mode.When carrying out refresh operation to some news columns, client sends Data Update request according to the configuration information of this news column to the server corresponding with this column or server interface.After server receives update request, return the concrete update content of news client by according to the update request received.After news client receives update content, news client is resolved update content.Update content, according to the configuration information of this news template, is resolved to the data layout that this plate can directly use by news client, and is sent to this plate by after parsing to fresh content, uses for this column.
Preferably, as shown in Figure 2, in the above embodiments of the present application one, before sending in step S12 the step upgrading data request information to Business Entity server according to Business Entity configuration information, following implementation step can also be performed:
Step S10, obtains the physical arrangements information of Business Entity.Wherein, physical arrangements information at least comprises: Business Entity server network address, Business Entity server interface title, the data layout upgrading content data request, upgrade request of data mode, return.
In above-mentioned steps S10, by the reading to Business Entity, scanning, obtain the configuration information of Business Entity.Wherein configuration information at least comprises: Business Entity server network address, Business Entity server interface title, the data layout upgrading content data request, upgrade request of data mode, return.
Wherein, Business Entity server network address, Business Entity server interface title: Business Entity can be determined to obtain the position upgrading data message by Business Entity server network address and Business Entity server interface title, to realize the function obtained from target location for the Business Entity information content.
Wherein, the data layout upgrade content data request, upgrading request of data mode, return: the data layout upgrade content data request, upgrade request of data mode, returning receive with corresponding Business Entity server upgrade content data request, receive the request of data mode that upgrades, the data layout of transmission is corresponding, to realize the function of being resolved the request of transmission and the information that receives by configuration file.
According to the step S10 that the above embodiments of the present application one provide, below just for this news client, the step S10 that above-described embodiment one provides is described in detail.
When news client terminal start-up, each news template in news client is scanned, obtains the NEWS SERVER network address corresponding with each news template, NEWS SERVER interface name, the data layout etc. that upgrades content data request, upgrade request of data mode, return.For convenience of client to the acquisition of each news template configuration information, when developing, allocation list corresponding with it can be set for each news template, in allocation list, can at least comprise above-mentioned configuration information.
Preferably, as shown in Figure 3, in the above embodiments of the present application one, after step S10 obtains the step of physical arrangements parameter of described Business Entity, following implementation step can also be performed:
Step S11, according to the physical arrangements information transmitting data between Business Entity and Business Entity server, creates cache information.Cache information at least comprises: the physical arrangements information between Business Entity and Business Entity server.
According to the step S11 that the above embodiments of the present application one provide, below just for this news client, the step S11 that above-described embodiment one provides is described in detail.
After news client terminal start-up, in order to ensure news client travelling speed, cache information can be created to the configuration information of each news template scanned in this locality.Avoiding news client when upgrading the content of news column, also needing repeatedly repeatedly to scan this news column, causing system burden overweight.
Preferably, as shown in Figure 4, in the above embodiments of the present application one, in step S16 according to Business Entity configuration information, according to Business Entity configuration information, Data Analysis is carried out to the more new data of the Business Entity returned, be in the Business Entity data layout that can identify by the renewal Data Analysis of the Business Entity returned, can also comprise the steps:
Step S161, obtains the more new data of the Business Entity received;
Step S163, searches the physical arrangements information corresponding to the more new data of the Business Entity received in cache information;
Step S165, according to the data layout returned in physical arrangements information, resolves the more new data of Business Entity, resolves to the data layout that Business Entity can identify.
Above-mentioned steps S161 is in step S165, search the physical arrangements information of mating with the renewal data message of the Business Entity received in buffer memory, resolve according to the renewal data message of the data layout returned in physical arrangements information to Business Entity, resolve to the data layout that Business Entity can identify, carry out for Business Entity.
Preferably, in the above embodiments of the present application one, send renewal data request information in step s 12 and at least comprise following a kind of requesting data information: upgrade the table data solicited message of Business Entity, upgrade the content data request information of Business Entity.
According to the above embodiments of the present application one, below just for this news client, above-described embodiment one is described in detail.
In news client, Business Entity is generally divided into two kinds of contents, the list information of news and the text message of news.Wherein, the table data solicited message of above-mentioned renewal Business Entity is exactly the list information for refreshing the news template in news client; The content data request information of above-mentioned renewal Business Entity is exactly the information for refreshing the news content in news client.
Preferably, in the above embodiments of the present application one, sending to Business Entity server the step upgrading data request information according to Business Entity configuration information in step S12 can also comprise:
Step S121, when sending that to upgrade data request information be the table data solicited message for upgrading Business Entity: obtain the list reference position of table data in the table data of Business Entity and upgrade the number of entries of table data, generating and upgrade data request information;
According to the step S121 that the above embodiments of the present application one provide, below just for this news client, the step S121 that above-described embodiment one provides is described in detail.
In news client, each news column, when refreshing news list information, does not need to refresh the news list of whole news at every turn.A kind of mode can be that news client judges with time or label this news template, obtain last refresh time or numbering, be sent to server, the news list of the self-defined quantity after last refresh time or numbering is refreshed.Another mode can be the time that news client obtains refresh operation, refreshes the news list of the self-defined quantity before refresh time.
Step S123, when sending renewal data request information and being the content data request information of renewal Business Entity: obtain the context number corresponding with the content-data of Business Entity, generate and upgrade data request information.
According to the step S123 that the above embodiments of the present application one provide, below just for this news client, the step S123 that above-described embodiment one provides is described in detail.
In news client, each news column is when refreshing news content information, and news client can obtain the news numbering of a certain section news in this column, generates renewal data request information.
Here, composition graphs 5, according to being described the flow process of each abstract module respectively:
Abstract service module: practical business funcall initiates request by abstract service module to the server end business interface of correspondence.After receiving the data that abstract network module returns, call abstract data parsing module, parsing of the data stream is become Business Entity example.After parsing, this Business Entity example will be passed to UI thread and transfer to related service logic process.
Abstract data parsing module: this module scans whole Business Entity collection when application program launching, and obtain type of service by analyzing Business Entity configuration information, arranges a buffer memory, is used for preserving the corresponding relation of Business Entity and server end business interface.After the Data Analysis request receiving abstract service module, obtain Business Entity by type of service, the Data Analysis that abstract network module returns is become related service entity instance, then this entity instance is passed to abstract service module.
Abstract network module: after this module receives the network request of abstract service module, obtain the Business Entity server network address in the update request of Business Entity, Business Entity server interface title, upgrade request of data mode, they are combined into general network request and initiate request to Business Entity server.After receiving server end response, the data stream returned got up and return to abstract service module.
The present invention is by network request, and resolution logic is encapsulated and takes out business interface, eliminates the step repeating to write network request function and Data Analysis function.Under development, developer only needs the exploitation of being correlated with through simply using training just can drop into upper-layer service at once, and does not spend care and how to write the request function mutual with server end and Data Analysis function.We are freed from the duplication of labour of bottom, makes us more be absorbed in the realization of business function, improve production efficiency.
Embodiment 2
Fig. 6 is the schematic diagram of the calling device of business interface according to the embodiment of the present invention two.As shown in Figure 4, this device can comprise: request module 202, receiver module 204, parsing module 206 and synchronization module 208.
Wherein, request module 202, for sending renewal data request information according to Business Entity configuration information to Business Entity server; Receiver module 204, for receiving Business Entity server according to the more new data upgrading the Business Entity that data request information returns; Parsing module 206, for according to Business Entity configuration information, carrying out Data Analysis to the more new data of the Business Entity returned according to Business Entity configuration information, is the data layout that Business Entity can identify by the renewal Data Analysis of the Business Entity returned; Synchronization module 208, for resolving to the renewal data syn-chronization of the Business Entity that Business Entity can identify to Business Entity.
In the above embodiments of the present application two, the request module 202 that the above embodiments of the present application one provide, receiver module 204, parsing module 206 and synchronization module 208 can be included in the application program that mobile intelligent terminal runs, in implementation process, a kind of embodiment of the application program run on mobile intelligent terminal in above-described embodiment two, it can be the news client run on mobile intelligent terminal, below just for this news client, above-described embodiment two is described in detail.
In news client, multiple news column can be there is, such as: hot news plate, financial and economic news column, science and technology news column, sports news column etc.Wherein each news column can regard it as a Business Entity.Each news column has respective configuration mode.When carrying out refresh operation to some news columns, client sends Data Update request according to the configuration information of this news column to the server corresponding with this column or server interface.After server receives update request, return the concrete update content of news client by according to the update request received.After news client receives update content, news client is resolved update content.Update content, according to the configuration information of this news template, is resolved to the data layout that this plate can directly use by news client, and is sent to this plate by after parsing to fresh content, uses for this column.
Preferably, as shown in Figure 7, in the above embodiments of the present application two, said apparatus also comprises: acquisition module 200.
Wherein, acquisition module 200, for obtaining the physical arrangements information of Business Entity, wherein, physical arrangements information at least comprises: Business Entity server network address, Business Entity server interface title, the data layout upgrading content data request, upgrade request of data mode, return.
Wherein, Business Entity server network address, Business Entity server interface title: Business Entity can be determined to obtain the position upgrading data message by Business Entity server network address and Business Entity server interface title, to realize the function obtained from target location for the Business Entity information content.
Wherein, the data layout upgrade content data request, upgrading request of data mode, return: the data layout upgrade content data request, upgrade request of data mode, returning receive with corresponding Business Entity server upgrade content data request, receive the request of data mode that upgrades, the data layout of transmission is corresponding, to realize the function of being resolved the request of transmission and the information that receives by configuration file.
According to the acquisition module 200 that the above embodiments of the present application two provide, below just for this news client, the acquisition module 200 that above-described embodiment one provides is described in detail.
When news client terminal start-up, each news template in news client is scanned, obtains the NEWS SERVER network address corresponding with each news template, NEWS SERVER interface name, the data layout etc. that upgrades content data request, upgrade request of data mode, return.For convenience of client to the acquisition of each news template configuration information, when developing, allocation list corresponding with it can be set for each news template, in allocation list, can at least comprise above-mentioned configuration information.
Preferably, as shown in Figure 8, in the above embodiments of the present application two, said apparatus also comprises: cache module 201.
Wherein, cache module 201, for according to the physical arrangements information transmitting data between Business Entity and Business Entity server, create cache information, cache information at least comprises: the physical arrangements information between Business Entity and Business Entity server.
According to the cache module 201 that the above embodiments of the present application one provide, below just for this news client, the cache module 201 that above-described embodiment one provides is described in detail.
After news client terminal start-up, in order to ensure news client travelling speed, cache module can create cache information to the configuration information of each news template scanned in this locality.Avoiding news client when upgrading the content of news column, also needing repeatedly repeatedly to scan this news column, causing system burden overweight.
Preferably, in the above embodiments of the present application two, for according to Business Entity configuration information, carry out Data Analysis to the more new data of the Business Entity returned according to Business Entity configuration information, the parsing module 206 being the data layout that Business Entity can identify by the renewal Data Analysis of the Business Entity returned comprises: sub-acquisition device 2061, treating apparatus 2063 and resolver 2065.
Wherein, sub-acquisition device 2061, for obtaining the more new data of the Business Entity received;
Treating apparatus 2063, for searching the physical arrangements information corresponding to the more new data of the Business Entity received in cache information;
Resolver 2065, for according to the data layout returned in physical arrangements information, resolves the more new data of Business Entity, resolves to the data layout that Business Entity can identify.
The physical arrangements information of mating with the renewal data message of the Business Entity received in buffer memory searched by above-mentioned treating apparatus 2063 by sub-acquisition device 2061, resolve according to the renewal data message of the data layout returned in physical arrangements information by resolver 2065 pairs of Business Entities, resolve to the data layout that Business Entity can identify, carry out for Business Entity.
Preferably, in the above embodiments of the present application two, when upgrading data request information and at least comprising the table data solicited message upgrading Business Entity, the content data request information upgrading Business Entity, comprise for sending to Business Entity server the request module 202 upgrading data request information according to Business Entity configuration information: the first acquisition module 2021 and the second acquisition module 2023.
Wherein, first acquisition module 2021, for send upgrade data request information be the table data solicited message for upgrading Business Entity time, obtain the list reference position of table data in the table data of Business Entity and upgrade the number of entries of table data, generating and upgrade data request information;
According to the first acquisition module 2021 that the above embodiments of the present application two provide, below just for this news client, the first acquisition module 2021 that above-described embodiment two provides is described in detail.
In news client, each news column, when refreshing news list information, does not need to refresh the news list of whole news at every turn.A kind of mode can be that news client judges with time or label this news template, last refresh time or numbering is obtained by the first acquisition module, be sent to server, the news list of the self-defined quantity after last refresh time or numbering is refreshed.Another mode can be that news client obtains the time of refresh operation by the first acquisition module, refreshes the news list of the self-defined quantity before refresh time.
Second acquisition module 2023, for when sending renewal data request information and being the content data request information of renewal Business Entity, obtains the context number corresponding with the content-data of Business Entity, generates and upgrade data request information.
According to the second acquisition module 2023 that the above embodiments of the present application two provide, below just for this news client, the second acquisition module 2023 that above-described embodiment two provides is described in detail.
In news client, each news column is when refreshing news content information, and news client obtains the news numbering of a certain section news in this column by the second acquisition module, generates renewal data request information.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (11)

1. a call method for business interface, is characterized in that, comprising:
Renewal data request information is sent to Business Entity server according to Business Entity configuration information;
Receive the more new data of the described Business Entity that described Business Entity server returns according to described renewal data request information;
According to described Business Entity configuration information, carrying out Data Analysis to the more new data of the described Business Entity returned according to described Business Entity configuration information, is the data layout that described Business Entity can identify by the renewal Data Analysis of the described Business Entity returned;
By the described renewal data syn-chronization of the described Business Entity that described Business Entity can identify that resolves to described Business Entity.
2. method according to claim 1, is characterized in that, described to send to Business Entity server according to Business Entity configuration information upgrade data request information before, step also comprises:
Obtain the described physical arrangements information of described Business Entity, wherein, described physical arrangements information at least comprises: Business Entity server network address, Business Entity server interface title, the data layout upgrading content data request, upgrade request of data mode, return.
3. method according to claim 2, it is characterized in that, after the described physical arrangements parameter of the described Business Entity of described acquisition, described method also comprises:
According to the described physical arrangements information transmitting data between described Business Entity and described Business Entity server, create cache information, described cache information at least comprises: the described physical arrangements information between Business Entity and described Business Entity server.
4. method according to claim 3, it is characterized in that, according to described Business Entity configuration information, carry out Data Analysis to the more new data of the described Business Entity returned according to described Business Entity configuration information, the step being the data layout that described Business Entity can identify by the renewal Data Analysis of the described Business Entity returned comprises:
Obtain the more new data of the described Business Entity received;
The described physical arrangements information corresponding to the more new data of the described described Business Entity received is searched in described cache information;
According to the data layout returned described in described physical arrangements information, the more new data of described Business Entity is resolved, resolves to the data layout that described Business Entity can identify.
5. method according to claim 1, it is characterized in that, described renewal data request information at least comprises following a kind of requesting data information: upgrade the table data solicited message of described Business Entity, upgrade the content data request information of described Business Entity.
6. method according to claim 5, is characterized in that, sends the method upgrading data request information comprise according to Business Entity configuration information to Business Entity server:
Send upgrade data request information be the table data solicited message for upgrading described Business Entity time, the list reference position of table data described in the table data obtaining described Business Entity and upgrade the number of entries of described table data, generates described renewal data request information;
Send upgrade data request information be the content data request information of described renewal described Business Entity time, obtain the context number corresponding with the content-data of described Business Entity, generate described renewal data request information.
7. a calling device for business interface, is characterized in that, comprising:
Request module, for sending renewal data request information according to Business Entity configuration information to Business Entity server;
Receiver module, for receiving the more new data of the described Business Entity that described Business Entity server returns according to described renewal data request information;
Parsing module, for according to described Business Entity configuration information, carrying out Data Analysis to the more new data of the described Business Entity returned according to described Business Entity configuration information, is the data layout that described Business Entity can identify by the renewal Data Analysis of the described Business Entity returned;
Synchronization module, for by the described renewal data syn-chronization resolving to the described Business Entity that described Business Entity can identify to described Business Entity.
8. device according to claim 7, it is characterized in that, described device also comprises:
Acquisition module, for obtaining the described physical arrangements information of described Business Entity, wherein, described physical arrangements information at least comprises: Business Entity server network address, Business Entity server interface title, the data layout upgrading content data request, upgrade request of data mode, return.
9. device according to claim 8, it is characterized in that, described device also comprises:
Cache module, for according to the described physical arrangements information transmitting data between described Business Entity and described Business Entity server, create cache information, described cache information at least comprises: the described physical arrangements information between Business Entity and described Business Entity server.
10. device according to claim 9, is characterized in that, described parsing module, comprising:
Sub-acquisition device, for obtaining the more new data of the described Business Entity received;
Treating apparatus, for searching the described physical arrangements information corresponding to the more new data of the described described Business Entity received in described cache information;
Resolver, for according to the data layout returned described in described physical arrangements information, resolves the more new data of described Business Entity, resolves to the data layout that described Business Entity can identify.
11. devices according to claim 7, is characterized in that, described request module comprises:
First acquisition module, for send upgrade data request information be the table data solicited message for upgrading described Business Entity time, the list reference position of table data described in the table data obtaining described Business Entity and upgrade the number of entries of described table data, generates described renewal data request information;
Second acquisition module, for send upgrade data request information be the content data request information of described renewal described Business Entity time, obtain the context number corresponding with the content-data of described Business Entity, generate described renewal data request information.
CN201410568960.8A 2014-10-22 2014-10-22 The call method and device of business interface Active CN104267974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410568960.8A CN104267974B (en) 2014-10-22 2014-10-22 The call method and device of business interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410568960.8A CN104267974B (en) 2014-10-22 2014-10-22 The call method and device of business interface

Publications (2)

Publication Number Publication Date
CN104267974A true CN104267974A (en) 2015-01-07
CN104267974B CN104267974B (en) 2018-03-30

Family

ID=52159498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410568960.8A Active CN104267974B (en) 2014-10-22 2014-10-22 The call method and device of business interface

Country Status (1)

Country Link
CN (1) CN104267974B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294669A (en) * 2016-08-05 2017-01-04 摩贝(上海)生物科技有限公司 A kind of multiple terminals data collection and relation converting system and method
CN108549657A (en) * 2018-03-12 2018-09-18 丹露成都网络技术有限公司 A kind of frequently-used data caching system
CN109460901A (en) * 2018-10-17 2019-03-12 平安科技(深圳)有限公司 Seating stand synchronous method, device, computer equipment and storage medium
CN109800031A (en) * 2019-01-18 2019-05-24 广州虎牙信息科技有限公司 Service control method, server, terminal and device based on mobile office system
CN110673895A (en) * 2019-09-29 2020-01-10 浙江中控技术股份有限公司 Method and device for Hibernate to create Session factory
CN112199079A (en) * 2020-12-07 2021-01-08 震坤行网络技术(南京)有限公司 System docking method, computing device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862538A (en) * 2006-02-27 2006-11-15 华为技术有限公司 Data configuration system and method for implementing data configuration
CN101420453A (en) * 2008-12-10 2009-04-29 中国电信股份有限公司 Customer terminal webpage representation implementing method used for enterprise information push application
CN101694618A (en) * 2009-09-01 2010-04-14 卡斯柯信号有限公司 Automatic mapping method of model layer and view layer data suitable for AJAX frame
US20100106543A1 (en) * 2008-10-28 2010-04-29 Honeywell International Inc. Building management configuration system
CN102323940A (en) * 2011-09-01 2012-01-18 中兴通讯股份有限公司 Configuration platform implementation method, configuration platform and system based on database
CN102355500A (en) * 2011-10-08 2012-02-15 中兴通讯股份有限公司 Business pushing method and device
CN102946415A (en) * 2012-10-18 2013-02-27 北京华胜鸣天科技有限公司 Implementation method and device for local application of mobile terminal
US8620774B1 (en) * 2010-09-23 2013-12-31 Amazon Technologies, Inc. Automated marketplace management service

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862538A (en) * 2006-02-27 2006-11-15 华为技术有限公司 Data configuration system and method for implementing data configuration
US20100106543A1 (en) * 2008-10-28 2010-04-29 Honeywell International Inc. Building management configuration system
CN101420453A (en) * 2008-12-10 2009-04-29 中国电信股份有限公司 Customer terminal webpage representation implementing method used for enterprise information push application
CN101694618A (en) * 2009-09-01 2010-04-14 卡斯柯信号有限公司 Automatic mapping method of model layer and view layer data suitable for AJAX frame
US8620774B1 (en) * 2010-09-23 2013-12-31 Amazon Technologies, Inc. Automated marketplace management service
CN102323940A (en) * 2011-09-01 2012-01-18 中兴通讯股份有限公司 Configuration platform implementation method, configuration platform and system based on database
CN102355500A (en) * 2011-10-08 2012-02-15 中兴通讯股份有限公司 Business pushing method and device
CN102946415A (en) * 2012-10-18 2013-02-27 北京华胜鸣天科技有限公司 Implementation method and device for local application of mobile terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294669A (en) * 2016-08-05 2017-01-04 摩贝(上海)生物科技有限公司 A kind of multiple terminals data collection and relation converting system and method
CN106294669B (en) * 2016-08-05 2019-06-04 上海摩库数据技术有限公司 A kind of multiple terminals data collection and relationship converting system and method
CN108549657A (en) * 2018-03-12 2018-09-18 丹露成都网络技术有限公司 A kind of frequently-used data caching system
CN109460901A (en) * 2018-10-17 2019-03-12 平安科技(深圳)有限公司 Seating stand synchronous method, device, computer equipment and storage medium
CN109800031A (en) * 2019-01-18 2019-05-24 广州虎牙信息科技有限公司 Service control method, server, terminal and device based on mobile office system
CN110673895A (en) * 2019-09-29 2020-01-10 浙江中控技术股份有限公司 Method and device for Hibernate to create Session factory
CN110673895B (en) * 2019-09-29 2022-05-27 浙江中控技术股份有限公司 Method and device for Hibernate to create Session factory
CN112199079A (en) * 2020-12-07 2021-01-08 震坤行网络技术(南京)有限公司 System docking method, computing device and storage medium
CN112199079B (en) * 2020-12-07 2021-03-05 震坤行网络技术(南京)有限公司 System docking method, computing device and storage medium

Also Published As

Publication number Publication date
CN104267974B (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN104267974A (en) Method and device for calling business interface
Barrett et al. Compiler construction: theory and practice
CN103870861B (en) A kind of method and apparatus generating Quick Response Code
US11899681B2 (en) Knowledge graph building method, electronic apparatus and non-transitory computer readable storage medium
CN108108342B (en) Structured text generation method, search method and device
CN105739981B (en) Code completion implementation method and device and computing equipment
CN105843800B (en) A kind of language message methods of exhibiting and device based on DOI
CN104077391A (en) Method, server, client and system for providing special news search
CN103618774A (en) Resource recommending method, device and system based on network behaviors
CN105138312A (en) Table generation method and apparatus
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
US20220237254A1 (en) Page displaying method and device, computer-readable storage medium and electronic device
CN105335423A (en) Collecting and processing method and apparatus for user feedbacks of webpage
CN104077101A (en) Projection method and electronic devices
CN103685400B (en) A kind of information processing method, server and electronic equipment
CN104572084A (en) Method and device for user interface generating and data issuing in card business
CN103559194A (en) Searching method, server and system
CN106648569A (en) Target serialization achieving method and device
CN105302461A (en) Method and equipment for providing target page in mobile application
CN106371706A (en) Method and device for site selection of application shortcuts
CN102253986A (en) Method and device for improving webpage displaying effect in multiple terminals
US20170199912A1 (en) Behavior topic grids
CN105260459A (en) Search method and apparatus
CN104639974A (en) Information pushing method and device
CN103246446A (en) Multimedia input method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094, C, building 301, building 18, North Taiping Road, Beijing, Haidian District

Applicant after: DATANG NETWORK CO.,LTD.

Address before: 100094 Yongjia North Road, Beijing, No. 6, No.

Applicant before: BEIJING XINHUA RUIDE TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100094 Beijing city Haidian District Taiping Road 18 city building C 301

Patentee after: Guoxing Network Co.,Ltd.

Address before: 100094 Beijing city Haidian District Taiping Road 18 city building C 301

Patentee before: DATANG NETWORK CO.,LTD.

CP01 Change in the name or title of a patent holder