CN104717178A - Information source data calling method and device - Google Patents

Information source data calling method and device Download PDF

Info

Publication number
CN104717178A
CN104717178A CN201310681187.1A CN201310681187A CN104717178A CN 104717178 A CN104717178 A CN 104717178A CN 201310681187 A CN201310681187 A CN 201310681187A CN 104717178 A CN104717178 A CN 104717178A
Authority
CN
China
Prior art keywords
information source
data
application program
mark
source data
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
CN201310681187.1A
Other languages
Chinese (zh)
Other versions
CN104717178B (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.)
Huawei Technologies Co Ltd
Huawei Software Technologies Co Ltd
China Mobile Group Henan Co Ltd
Original Assignee
Huawei Technologies Co Ltd
China Mobile Group Henan 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 Huawei Technologies Co Ltd, China Mobile Group Henan Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310681187.1A priority Critical patent/CN104717178B/en
Publication of CN104717178A publication Critical patent/CN104717178A/en
Application granted granted Critical
Publication of CN104717178B publication Critical patent/CN104717178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an information source data calling method and a device, so as to solve the problem of low application program development efficiency as for an information source supporting different protocols. The method comprises steps: an information source platform receives a data calling request sent by the application program, wherein an identity of information source data indicated for calling is in the data calling request, and the data calling request is packaged by a first protocol agreed with the information source platform in a unified mode and based on an application side; the information source platform determines a second protocol adopted by a corresponding information source according to the identity of the information source data, carries out protocol conversion on the data calling request based on the second protocol, and sends the data calling request after conversion to the corresponding information source; and the information source platform receives information source data returned by the corresponding information source, carries out conversion on the information source data based on the first protocol, and returns the information source data after conversion to the application program. By adopting the above method, information source interfaces are unified via the information source platform, and the application program development efficiency is improved.

Description

A kind of call method of information source data and device
Technical field
The present invention relates to the communications field, particularly relate to a kind of call method and device of information source data.
Background technology
Along with the deep construction of wireless city, various application program is enriched gradually, constantly meets to look into route when cellphone subscriber goes on a journey, look into sight spot or the various demands in client payment etc., and the use of application program then needs information source to provide amount of information support.Such as, if the application program that user runs in client carries out charges for water and electricity inquiry, then this application program by with provide the hydroelectric plant of charges for water and electricity data or the communication of the information source such as the website can inquiring about charges for water and electricity data obtains data needed for user.
Obviously, under present mode, the speed when degree direct influence cellphone subscriber of the opening and sharing of Develop Application System and information source inquires about various information and quality.
At present, information source mainly comprises following several:
1, static data: timing obtains from information source side and is directed into the database of application program, and the mode directly connected by document form or database provides data.Static data is similar water electricity charge data query, weather lookup data or sight spot information etc., does not need the data carrying out in real time upgrading.
2, adaptation data: adaptation data is many to be provided by website class medium, the application program mode adopting simulation to submit to more, required information source data are obtained from website by page Grasp Modes, the obtain manner of these type of information source data is subject to the impact of website stability, and may cause cannot the problem of Real-time Obtaining information.Similar information source has query web violating the regulations etc.
3, to gather and edit data: data of gathering and editing are many to be provided by third party website, application program, by manual type or reptile mode, after required content being obtained from third party website, represents after platform of gathering and editing is edited again.Similar information source mostly is news or information class data etc.
4, data-interface: by information source side opening interface, application program needed called data interface before acquisition information source side data, displayed page is generated according to returning results application program after acquisition information source side data, the information source data obtained by data-interface are more stable, access way has corresponding specification and standard, is convenient to exploitation.
From foregoing, based on nowadays complicated Internet service model, information source data are no longer confined to be provided by database, also can be provided by the data-interface based on different agreement, as, Simple Object Access Protocol (Simple Object Access Protocol, SOAP), Java messenger service (Java MessageService, or file transfer protocol (FTP) (File Transfer Protocol, FTP) JMS).In this case, application program is to when using each data-interface of different agreement to conduct interviews to realize data to transfer, need to develop according to different agreement, if the interface protocol of information source side changes, application program also needs to do corresponding more newly developed, and this can improve the O&M cost of application program; And different information sources adopts different interface protocols, make Develop Application System inefficiency, the confusion that simultaneously information source also can be caused to manage, cannot reach unification; Further, different application programs is when calling same information source data, and each application program must be docked once with information source, and this can cause and a large amount of repeat docking, thus causes overhead unnecessary in a large number.
Summary of the invention
The embodiment of the present invention provides a kind of call method and device of information source data, there is information source managerial confusion, repeat to dock between each application program with information source in order to solve in prior art, overlapping development and the low problem of development efficiency.
The embodiment of the present invention provides a kind of call method and device of information source data, comprises following four aspects:
First aspect, a kind of call method of information source data, the method is:
Information source platform receives the data call request that application program is initiated, and carries the mark indicating the information source data called in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Information source platform determines according to the mark of information source data the second protocol that corresponding information source adopts, and carries out protocol conversion based on second protocol to data call request, and the data call request after conversion is sent to corresponding information source;
Information source platform receives the information source data that corresponding information source returns, and changes information source data based on the first agreement, and the information source data after conversion are back to application program.
By this possible implementation, when each real-time class data-interface of accessing use different agreement is transferred to realize data, do not need to develop according to different agreement, the unified interface all provided by access information source platform of the present invention realizes transferring of data, reduce the O&M cost of application program, improve the efficiency of application development.
In conjunction with first aspect, in the implementation that the first is possible, information source platform also comprises before receiving the data call request of application program initiation:
Receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate the access account needed for application program access information source platform according to access application and authorize mark;
The access rights of the unified interface between the open information source platform of application program and application side are defined as according to the access account generated and mandate mark.
By this possible execution mode, information source platform can carry out authentication to the application program of access, avoids the application program accessing some illegal calling datas.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, information source platform before determining according to the mark of information source data the second protocol that corresponding information source adopts, comprises after receiving the data call request of application program initiation further:
Obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine that permission uses information source Data Identification to perform subsequent operation.
In conjunction with first aspect and any one possible implementation above-mentioned, in the implementation that the third is possible, information source platform is determined to comprise the second protocol that corresponding information source adopts according to the mark of information source data:
If the mark being designated the information source interface that corresponding information source adopts of information source data, then directly determine according to the mark of information source data the second protocol that information source interface is supported;
If the aiming field be designated in information source data of information source data, then first determine the target information source position of record object field according to the mark of information source data, then determine according to target information source position the second protocol that its information source interface adopted is supported.
Second aspect, a kind of call method of information source data, the method is:
Information source platform receives the data call request that application program is initiated, and carries the mark indicating the information source data called in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Information source platform judges the information source data that the local mark that whether there are corresponding information source data stores, when determining to there are information source data, information source data are back to application program, wherein, information source data are that the information source indicated by the mark of information source data is uploaded to information source platform in advance, and information source is supported second protocol and carried out by the protocol conversion of second protocol to the first agreement information source data before uploading information source data.
By this possible implementation, when each non real-time class data-interface of accessing use different agreement is transferred to realize data, do not need to develop according to different agreement, all by accessing the unified interface that information source platform of the present invention provides, and directly obtain it in advance from the information source data that each non real-time class information source obtains from information source platform this locality, effectively can reduce the O&M cost of application program, improve the efficiency of application development.
In conjunction with second aspect, in the implementation that the first is possible, information source platform also comprises before receiving the data call request of application program initiation:
Receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate the access account needed for application program access information source platform according to access application and authorize mark;
The access rights of the unified interface between the open information source platform of application program and application side are defined as according to the access account generated and mandate mark.
By this possible execution mode, information source platform can carry out authentication to the application program of access, avoids the application program accessing some illegal calling datas.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, information source platform before determining according to the mark of information source data the second protocol that corresponding information source adopts, comprises after receiving the data call request of application program initiation further:
Obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine that permission uses information source Data Identification to perform subsequent operation.
In conjunction with second aspect and any one possible implementation above-mentioned, in the implementation that the third is possible, comprise further:
Information source platform obtains according to setting cycle the up-to-date information source data that each information source provides, wherein, for any one information source, often obtain once up-to-date information source data, all judge whether any one information source corresponding exists corresponding tables of data, and the up-to-date information source data if so, then any one information source provided upgrade in the tables of data of its correspondence, otherwise any one information source corresponding creates new tables of data and stores information source data up-to-date accordingly.
The third aspect, a kind of calling device of information source data, this device is:
Receiving element, for receiving the data call request that application program is initiated, carries the mark indicating the information source data called in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Processing unit, for determining according to the mark of information source data the second protocol that corresponding information source adopts, and carries out protocol conversion based on second protocol to data call request, and the data call request after conversion is sent to corresponding information source;
Transmitting element, for receiving the information source data that corresponding information source returns, and changes information source data based on the first agreement, and the information source data after conversion are back to application program.
By this possible implementation, when each real-time class data-interface of accessing use different agreement is transferred to realize data, do not need to develop according to different agreement, the unified interface all provided by access information source platform of the present invention realizes transferring of data, reduce the O&M cost of application program, improve the efficiency of application development.
In conjunction with the third aspect, in the implementation that the first is possible, receiving element also for: receive application program initiate data call request before, receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate application program according to access application access the access account needed for information source platform and authorize mark, and be defined as the access rights of the unified interface between the open information source platform of application program and application side according to the access account generated and mandate mark.
By this possible execution mode, information source platform can carry out authentication to the application program of access, avoids the application program accessing some illegal calling datas.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second is possible, receiving element also for:
After the data call request receiving application program initiation, before determining according to the mark of information source data the second protocol that corresponding information source adopts, obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine to allow to use information source Data Identification to perform subsequent operation.
In conjunction with the third aspect and any one possible implementation above-mentioned, in the implementation that the third is possible, processing unit specifically for:
If the mark being designated the information source interface that corresponding information source adopts of information source data, then directly determine according to the mark of information source data the second protocol that information source interface is supported;
If the aiming field be designated in information source data of information source data, then first determine the target information source position of record object field according to the mark of information source data, then determine according to target information source position the second protocol that its information source interface adopted is supported.
Fourth aspect, a kind of calling device of information source data, this device is:
Receiving element, for receiving the data call request that application program is initiated, carries the mark indicating the information source data called in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Transmitting element, for judging the information source data that the local mark that whether there are corresponding information source data stores, when determining to there are information source data, information source data are back to application program, wherein, information source data are that the information source indicated by the mark of information source data is uploaded to information source platform in advance, and information source is supported second protocol and carried out by the protocol conversion of second protocol to the first agreement information source data before uploading information source data.
By this possible implementation, when each non real-time class data-interface of accessing use different agreement is transferred to realize data, do not need to develop according to different agreement, all by accessing the unified interface that information source platform of the present invention provides, and directly obtain it in advance from the information source data that each non real-time class information source obtains from information source platform this locality, effectively can reduce the O&M cost of application program, improve the efficiency of application development.
In conjunction with fourth aspect, in the implementation that the first is possible, receiving element also for:
Receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate application program according to access application access the access account needed for information source platform and authorize mark, and be defined as the access rights of the unified interface between the open information source platform of application program and application side according to the access account generated and mandate mark.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the second is possible, receiving element also for:
After the data call request receiving application program initiation, before determining according to the mark of information source data the second protocol that corresponding information source adopts, obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine to allow to use information source Data Identification to perform subsequent operation.
In conjunction with fourth aspect and any one possible implementation above-mentioned, in the implementation that the third is possible, transmitting element also for:
The up-to-date information source data that each information source provides are obtained according to setting cycle, wherein, for any one information source, often obtain once up-to-date information source data, all judge whether any one information source corresponding exists corresponding tables of data, and the up-to-date information source data if so, then any one information source provided upgrade in the tables of data of its correspondence, otherwise any one information source corresponding creates new tables of data and stores information source data up-to-date accordingly.
Accompanying drawing explanation
The information source platform schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The information source platform that Fig. 2 provides for the embodiment of the present invention and the structural representation between information source and application program;
The first pass figure of the call method of the information source data that Fig. 3 provides for the embodiment of the present invention;
Second flow chart of the call method of the information source data that Fig. 4 provides for the embodiment of the present invention;
The flow chart of the information source platform acquisition information source data that Fig. 5 provides for the embodiment of the present invention;
The information source data that Fig. 6 provides for the embodiment of the present invention call first device structure chart;
The information source data that Fig. 7 provides for the embodiment of the present invention call the second structure drawing of device.
Embodiment
In order to solve application program to when using each data-interface of different agreement to conduct interviews to realize data to transfer, need to develop according to different agreement, make the O&M cost of increase application program, also the problem of the inefficiency of use program development is made, embodiments provide a kind of call method and device of information source data, below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein, only for instruction and explanation of the present invention, is not intended to limit the present invention.And when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
The embodiment of the present invention provides a kind of call method of information source data, mainly through unified information source agreement, the data-interface of different agreement is converted to unified standard interface, pilot process comprises processing to data, conversion and secondary encapsulation, thus can rapid abutting joint be realized when developing wireless city application, promote development efficiency.
Below the information source platform of core of the present invention is introduced, consult shown in Fig. 1, information source platform major function comprises introduces information source data from each information source, and by open to the application program of access for the information source data introduced, also comprise the authentication management of application programs, object all kinds of information source data is integrated by standard platform to conclude, and is supplied to application developer and calls.
Consult shown in Fig. 2, the system architecture of information source data call provided by the invention is as follows:
Thered is provided as birth insurance, medical insurance, endowment insurance, water rate and the electricity charge etc. information source data by each information source, introduce above-mentioned information source data by information source platform and arrange, then supplying application call.As can be seen here, information source platform provides the platform of data unified management, but also needs how to transform the agreement between each information source and information source platform, and how information source processes conducts further description with encapsulation.Below for two class information source interfaces: the processing method of class data-interface and non real-time class data-interface is introduced in real time.
Consult shown in Fig. 3, the call method of real-time class data-interface is:
Step 300: information source platform receives the data call request that application program is initiated, carries the information source Data Identification indicating and call in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform.
Concrete, before information source platform receives the data call request of application program initiation, receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate the access account needed for application program access information source platform according to access application and authorize mark; The access rights of the unified interface between the open information source platform of application program and application side are defined as according to the access account generated and mandate mark.
Above-mentioned protocol open method is specially: the application program of request access submits access application to, accepts application by information source platform, and in the relevant information of this application program of this information source platform configuration, generates access account and authorize mark.Information source platform is according to access account and authorize mark to be defined as the access rights of the unified interface between the open information source platform of application program and application side.
After information source platform receives the data call request of application program initiation, before determining according to information source Data Identification the second protocol that corresponding information source adopts, obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine to allow to use information source Data Identification to perform subsequent operation.
Above-mentioned authentication access operation is specially: when application program adopts this access account to access information source platform later at every turn, information source platform all must perform the verification of authorizing mark, when determining that application program is passed through to authorize verification, just allows access information source platform.
During unified interface between each calling information source platform of application program and application side, its access request need carry the combined field according to pre-set specifications definition, this combined field is the PKI (Public-Key) encrypting rear generation with RSA Algorithm obtained from information source platform, authorize mark, date, call the mark of password and information source data, i.e. following combined field (RSA-Encrypt(Public-Key+ authorizes the mark+date+call the mark of password+information source data)), rule of combination is identified by information source platform in analysis mandate and distributes to application program when calling password, when application program accesses information source platform at every turn, all must send the access request comprising combinations thereof field, and row encrypted transmission is carried out to this access request.
After information source platform allows application program access, information source platform receives the data call request that application program is initiated, carry the mark indicating the information source data called in data call request, this data call request unifies first protocol encapsulation of arranging based on application side and information source platform.
The first agreement that above-mentioned unified interface is supported, can be several SOAP, HTML (Hypertext Markup Language)+identifiable language ((Hyper Text Transport Protocol, HTTP)+(Markup Language,) or the data interchange format of HTML (Hypertext Markup Language)+lightweight ((Hyper Text Transport Protocol XML), HTTP)+(JavaScript Object Notation, JSON)), this unified interface can be used for different market demand scenes to use.
Step 310: information source platform determines according to the mark of information source data the second protocol that corresponding information source adopts, and carries out protocol conversion based on second protocol to data call request, and the data call request after conversion is sent to corresponding information source.
Concrete, if the mark being designated the information source interface that corresponding information source adopts of information source data, then directly determine according to the mark of information source data the second protocol that information source interface is supported; If the aiming field be designated in information source data of information source data, then first determine the target information source position of record object field according to the mark of information source data, then determine according to target information source position the second protocol that its information source interface adopted is supported.
Such as, application program of mobile phone inquires about certain city's map, if the website being designated certain city's map inquiry of the information source data of carrying in the data call request that application program of mobile phone sends is to the mark of the interface that information source platform opens, then the second protocol that this interface is supported determined by its interface protocol file that information source platform provides to information source platform according to the website of this certain city's map inquiry.
Again such as, application program of mobile phone inquiry stock certificate data, if the aiming field " stock price " be designated in information source data of the information source data of carrying in the data call request that application program of mobile phone sends, then determine which information source have recorded this aiming field according to this aiming field " stock price ", as, certain provides the website records of stock price this aiming field, after determining this website, again according to its interface protocol file that this website provides to information source platform, determine the second protocol that this interface is supported.
The access step of above-mentioned information source platform is: each information source provides its interface protocol file to information source platform, information source platform is according to the interface protocol document description of carrying in interface protocol file, development agreement conversion plug-in unit, is uploaded to information source platform by the protocol conversion plug-in unit developed.Request input item field and request output item field is defined in the mouth document of agreement that each information source connects, wherein, the request input item field of definition is the title of the Source field that application requests is obtained by information source platform, and the request output item field of definition is the concrete data of the Source field that application program is obtained by information source platform; As asked input item field for " the water rate amount of money ", then corresponding request output item field is the concrete data of the water rate amount of money that each information source returns; And for example ask input item field to be " real time temperature ", then corresponding request output item field is the concrete numerical value of the real time temperature that each information source returns.
Step 320: information source platform receives the information source data that corresponding information source returns, and changes information source data based on the first agreement, and the information source data after conversion are back to application program.
The method of above-mentioned real-time information source data call is described with specific embodiment below.
For application program of mobile phone inquiry bank card remaining sum, unified interface is formulated by information source platform, and its first agreement supported, application program of mobile phone is when user needs to obtain bank card remaining sum, data call request is sent to information source platform, the mark indicating the information source data called is carried in this data call request, the mark of these information source data may be used to indicate the website that can provide this bank card remaining sum, also may be used to indicate the interface that the bank of this bank card remaining sum can be provided information source platform development; And this data call request calls the first protocol encapsulation of instruction in specification documents and the explanation of interface interchange example according to the unified interface of information source platform issue.
The second protocol that corresponding information source adopts is determined according to the mark of information source data, and based on second protocol, protocol conversion is carried out to data call request, and when corresponding information source is for providing the website of bank card remaining sum, the data call request after protocol conversion is sent to above-mentioned website;
Information source platform receives the bank card remaining sum that above-mentioned website returns, and changes bank card balance data based on the first agreement, and the bank card balance data after conversion is back to application program of mobile phone.User is just by the bank card remaining sum of a series of conversion query to oneself.
Consult shown in Fig. 4, the call method of non real-time class data-interface is:
Step 400: information source platform receives the data call request that application program is initiated, carries the mark indicating the information source data called in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform.
Concrete, before information source platform receives the data call request of application program initiation, receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate the access account needed for application program access information source platform according to access application and authorize mark; The access rights of the unified interface between the open information source platform of application program and application side are defined as according to the access account generated and mandate mark.
Above-mentioned protocol open method is specially: the application program of request access submits access application to, accepts application by information source platform, and in the relevant information of this application program of this information source platform configuration, generates access account and authorize mark.Information source platform is according to access account and authorize mark to be defined as the access rights of the unified interface between the open information source platform of application program and application side.
After information source platform receives the data call request of application program initiation, before judging the information source data that the local mark that whether there are corresponding above-mentioned information source data stores, obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine to allow to use information source Data Identification to perform subsequent operation.
Above-mentioned authentication access operation is specially: when application program adopts this access account to access information source platform later at every turn, information source puts down the verification that all must perform and authorize mark, when determining that application program is passed through to authorize verification, just allows access information source platform.
During unified interface between each calling information source platform of application program and application side, its access request need carry the combined field according to pre-set specifications definition, this combined field is the PKI (Public-Key) encrypting rear generation with RSA Algorithm obtained from information source platform, authorize mark, date, call the mark of password and information source data, i.e. following combined field (RSA-Encrypt(Public-Key+ authorizes the mark+date+call the mark of password+information source data)), rule of combination is identified by information source platform in analysis mandate and distributes to application program when calling password, when application program accesses information source platform at every turn, all must send the access request comprising combinations thereof field, and row encrypted transmission is carried out to this access request.
After information source platform allows application program access, information source platform receives the data call request that application program is initiated, carry the mark indicating the information source data called in data call request, and this data call request unifies first protocol encapsulation of arranging based on application side and information source platform.
The first agreement that above-mentioned unified interface is supported, can be several SOAP, HTTP+XML or HTTP+JSON, this unified interface can be used for different market demand scenes to use.
Step 410: information source platform judges the information source data that the local mark that whether there are corresponding above-mentioned information source data stores, when determining to there are information source data, information source data are back to application program, wherein, above-mentioned information source data are that the information source indicated by the mark of above-mentioned information source data is uploaded to information source platform in advance, and this information source is supported second protocol and carried out by the protocol conversion of second protocol to the first agreement information source data before uploading information source data.
Further, consult shown in Fig. 5, in actual applications, up-to-date information source data can be uploaded to the ftp server of information source platform by each information source according to setting cycle, information source platform is that the information source of each non-real-time data interface type sets up background scanning session, obtain up-to-date information source data in local database by setting cycle, wherein, the setting cycle adopted during information source platform scanner and each information source are by identical for the cycle of the ftp server of information source data upload information source platform; On the other hand, also directly up-to-date information source data can be uploaded to the database of information source platform by keeper, not repeat them here.
For any one information source, suppose that this any one information source supports second protocol, so, information source platform obtains up-to-date information source data according to setting cycle from this any one information source, wherein, these up-to-date information source data, before uploading up-to-date information source data, have been carried out by the protocol conversion of second protocol to the first agreement by this any one information source.
On the other hand, obtain the process of up-to-date information source data from this any one information source information source land period, often obtain once up-to-date information source data, all judge any one information source whether there is corresponding tables of data, if, then the up-to-date information source data that this any one information source provides are upgraded in the tables of data of its correspondence, namely initial data is emptied, store up-to-date information source data in the database of information source platform, otherwise, to any one information source should create new tables of data and store information source data up-to-date accordingly.
Above-mentioned information source land period obtains in the process of up-to-date information source data, when judging that any one information source does not exist corresponding tables of data at information source platform, to any one information source should creating the method for tables of data and be: the data file head carried in the up-to-date information source data uploaded according to this any one information source and request input item field name create new tables of data, using the data file head that carries in the up-to-date information source data title as new tables of data, it is stored in new tables of data by read requests input item field name one by one, finally by request input item field store corresponding for the request input item field name of carrying in up-to-date information source data in new tables of data.Storage mode is read information source data line by line, in the tables of data that information source data importing newly creates by batch.
After receiving data call request, information source platform judges whether this locality exists corresponding information source data, when determining to there are information source data, information source data is back to application program.
The method of above-mentioned non real-time information source data call is described with specific embodiment below.
With the non real-time information source data instance that 12580 websites provide.
Unified interface is formulated by information source platform, and its first agreement supported.And 12580 websites regularly generate information source data according to specification and set form, and according to the catalogue of arranging, after up-to-date information source data are carried out protocol conversion based on the first agreement, be uploaded to the ftp server of information source platform.
Information source platform is according to the request input item field of static state, in the dynamic tables of data of information source platform configuration, this dynamic tables of data be a kind of can the tables of data of the input item field of renewal uploaded of each information source of automatic acquisition, such as, the catering information that 12580 websites provide, request input item field can be " place " and " cuisines type ", then these two are asked input item fields stored in tables of data by information source platform, when catering information is provided in upper once 12580 websites, increase a request input item field: price, then by " price ", this asks input item field stored in tables of data to information source platform.Information source platform creates information source data scan task, issues the querying condition of unified interface, obtains 12580 websites and is uploaded to ftp server, the up-to-date information source data of each request input item field corresponding, and preserve according to the cycle of setting.
Further, information source platform can also and automatically generate interface interchange specification documents and the explanation of interface interchange example.The interface specification document that developer provides according to information source platform and interface interchange example illustrate that application programs is developed accordingly, and setting application program, when accessing information source platform, adopts the first agreement of unified agreement to call.
So, when supposing that user needs to obtain by application program of mobile phone the catering information that 12580 websites provide, sent based on the data call request of the first protocol generation to information source platform by application program of mobile phone, in this data call request, carry the mark indicating the information source data called.Information source platform is after request 12580 website receiving application program of mobile phone initiation provides the data call request of catering information, the mark of the information source data entrained by this data call request determines whether the catering information that 12580 websites provide is stored in information source platform this locality, if, then the catering information of the mark correspondence of information source data is back to mobile phone as the request output item field that request input item field is corresponding, otherwise, return miscue information.
Based on same inventive concept, according to the call method of the information source data that the above embodiment of the present invention provides, correspondingly, another embodiment of the present invention additionally provides a kind of calling device of information source data, the structural representation of this device as shown in Figure 6, specifically comprises: receiving element 600, processing unit 610 and transmitting element 620.
Receiving element 600, for receiving the data call request that application program is initiated, carries the mark indicating the information source data called in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Processing unit 610, for determining according to the mark of information source data the second protocol that corresponding information source adopts, and carries out protocol conversion based on second protocol to data call request, and the data call request after conversion is sent to corresponding information source;
Transmitting element 620, for receiving the information source data that corresponding information source returns, and changes information source data based on the first agreement, and the information source data after conversion are back to application program.
Receiving element 600 also for:
Before the data call request receiving application program initiation, receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate application program according to access application access the access account needed for information source platform and authorize mark, and be defined as the access rights of the unified interface between the open information source platform of application program and application side according to the access account generated and mandate mark.
Receiving element 600 also for:
After the data call request receiving application program initiation, before determining according to the mark of information source data the second protocol that corresponding information source adopts, obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine to allow to use information source Data Identification to perform subsequent operation.
Processing unit 610 specifically for:
If the mark being designated the information source interface that corresponding information source adopts of information source data, then directly determine according to the mark of information source data the second protocol that information source interface is supported;
If the aiming field be designated in information source data of information source data, then first determine the target information source position of record object field according to the mark of information source data, then determine according to target information source position the second protocol that its information source interface adopted is supported.
Based on same inventive concept, according to the call method of the information source data that the above embodiment of the present invention provides, correspondingly, another embodiment of the present invention additionally provides a kind of calling device of information source data, the structural representation of this device as shown in Figure 7, specifically comprises: receiving element 700 and transmitting element 710.
Receiving element 700, for receiving the data call request that application program is initiated, carries the mark indicating the information source data called in data call request, and data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Transmitting element 710, for judging the information source data that the local mark that whether there are corresponding information source data stores, when determining to there are information source data, information source data are back to application program, wherein, information source data are that the information source indicated by the mark of information source data is uploaded to information source platform in advance, and information source is supported second protocol and carried out by the protocol conversion of second protocol to the first agreement information source data before uploading information source data.
Receiving element 700 also for:
Receive the access application that application program is submitted to, if determine, application program is first time access this information source platform, then generate application program according to access application access the access account needed for information source platform and authorize mark, and be defined as the access rights of the unified interface between the open information source platform of application program and application side according to the access account generated and mandate mark.
Receiving element 700 also for:
After the data call request receiving application program initiation, before determining according to the mark of information source data the second protocol that corresponding information source adopts, obtain the access account and mandate mark of carrying in data call request, according to access account with when authorizing mark to determine application program by authority checking, determine to allow to use information source Data Identification to perform subsequent operation.
Transmitting element 710 also for:
The up-to-date information source data that each information source provides are obtained according to setting cycle, wherein, for any one information source, often obtain once up-to-date information source data, all judge whether any one information source corresponding exists corresponding tables of data, and the up-to-date information source data if so, then any one information source provided upgrade in the tables of data of its correspondence, otherwise any one information source corresponding creates new tables of data and stores information source data up-to-date accordingly.
In sum, the scheme that the embodiment of the present invention provides, according to different agreement and the form of each information source interface, set up unified data processing method, information source data are encapsulated as information source data that standard interface can identify and application programs is open, thus can rapid abutting joint be realized when developing wireless city application, promote development efficiency.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (16)

1. a call method for information source data, is characterized in that, described method comprises:
Information source platform receives the data call request that application program is initiated, and carries the mark indicating the information source data called in described data call request, and described data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Described information source platform determines according to the mark of described information source data the second protocol that corresponding information source adopts, and based on described second protocol, protocol conversion is carried out to described data call request, and the described data call request after conversion is sent to corresponding information source;
Described information source platform receives the information source data that corresponding information source returns, and changes described information source data based on described first agreement, and the information source data after conversion are back to described application program.
2. the method for claim 1, is characterized in that, described information source platform also comprises before receiving the data call request of application program initiation:
The access application of reception application program submission, if determine, described application program is first time access this information source platform, then apply for that the access account that the described application program of generation is accessed needed for described information source platform identifies with authorizing according to described access;
The access rights of the unified interface between the open described information source platform of described application program and application side are defined as according to the described access account generated and mandate mark.
3. method as claimed in claim 2, is characterized in that, described information source platform before determining according to the mark of described information source data the second protocol that corresponding information source adopts, comprises after receiving the data call request of application program initiation further:
Obtain the access account and mandate mark of carrying in described data call request, according to described access account with when authorizing mark to determine described application program by authority checking, determine to allow the described information source Data Identification of use to perform subsequent operation.
4. the method as described in claim 1,2 or 3, is characterized in that, described information source platform is determined to comprise the second protocol that corresponding information source adopts according to the mark of described information source data:
If the mark being designated the information source interface that corresponding information source adopts of described information source data, then directly determine according to the mark of described information source data the second protocol that described information source interface is supported;
If the aiming field be designated in information source data of described information source data, then first determine the target information source position of recording described aiming field according to the mark of described information source data, then determine according to described target information source position the second protocol that its information source interface adopted is supported.
5. a call method for information source data, is characterized in that, the method comprises:
Information source platform receives the data call request that application program is initiated, and carries the mark indicating the information source data called in described data call request, and described data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Described information source platform judges the information source data that the local mark that whether there are corresponding described information source data stores, when determining to there are described information source data, described information source data are back to described application program, wherein, described information source data are that the information source indicated by the mark of described information source data is uploaded to described information source platform in advance, and described information source is supported second protocol and carried out by the protocol conversion of second protocol to the first agreement described information source data before uploading described information source data.
6. method as claimed in claim 5, is characterized in that, described information source platform also comprises before receiving the data call request of application program initiation:
The access application of reception application program submission, if determine, described application program is first time access this information source platform, then apply for that the access account that the described application program of generation is accessed needed for described information source platform identifies with authorizing according to described access;
The access rights of the unified interface between the open described information source platform of described application program and application side are defined as according to the described access account generated and mandate mark.
7. method as claimed in claim 6, is characterized in that, described information source platform before determining according to the mark of described information source data the second protocol that corresponding information source adopts, comprises after receiving the data call request of application program initiation further:
Obtain the access account and mandate mark of carrying in described data call request, according to described access account with when authorizing mark to determine described application program by authority checking, determine to allow the described information source Data Identification of use to perform subsequent operation.
8. the method as described in claim 5,6 or 7, is characterized in that, comprise further:
Described information source platform obtains according to setting cycle the up-to-date information source data that each information source provides, wherein, for any one information source, often obtain once up-to-date information source data, all judge whether corresponding any one information source described exists corresponding tables of data, if so, then the up-to-date information source data that any one information source described provides is upgraded in the tables of data of its correspondence, otherwise corresponding any one information source described creates new tables of data and stores information source data up-to-date accordingly.
9. a calling device for information source data, is characterized in that, described device comprises:
Receiving element, for receiving the data call request that application program is initiated, carry the mark indicating the information source data called in described data call request, and described data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Processing unit, for determining according to the mark of described information source data the second protocol that corresponding information source adopts, and based on described second protocol, protocol conversion is carried out to described data call request, and the described data call request after conversion is sent to corresponding information source;
Transmitting element, for receiving the information source data that corresponding information source returns, and changes described information source data based on described first agreement, and the information source data after conversion are back to described application program.
10. device as claimed in claim 9, is characterized in that, described receiving element also for:
Before the data call request receiving application program initiation, receive the access application that application program is submitted to, if determine, described application program is for accessing this information source platform for the first time, then access the access account needed for described information source platform according to the described application program of described access application generation and authorize mark, and being defined as the access rights of the unified interface between the open described information source platform of described application program and application side according to the described access account generated and mandate mark.
11. devices as claimed in claim 10, is characterized in that, described receiving element also for:
After the data call request receiving application program initiation, before determining according to the mark of described information source data the second protocol that corresponding information source adopts, obtain the access account and mandate mark of carrying in described data call request, according to described access account with when authorizing mark to determine described application program by authority checking, determine to allow to use described information source Data Identification to perform subsequent operation.
12. devices as described in claim 9,10 or 11, is characterized in that, described processing unit specifically for:
If the mark being designated the information source interface that corresponding information source adopts of described information source data, then directly determine according to the mark of described information source data the second protocol that described information source interface is supported;
If the aiming field be designated in information source data of described information source data, then first determine the target information source position of recording described aiming field according to the mark of described information source data, then determine according to described target information source position the second protocol that its information source interface adopted is supported.
The calling device of 13. 1 kinds of information source data, is characterized in that, described device comprises:
Receiving element, for receiving the data call request that application program is initiated, carry the mark indicating the information source data called in described data call request, and described data call request unifies first protocol encapsulation of arranging based on application side and this information source platform;
Transmitting element, for judging the information source data that the local mark that whether there are corresponding described information source data stores, when determining to there are described information source data, described information source data are back to described application program, wherein, described information source data are that the information source indicated by the mark of described information source data is uploaded to described information source platform in advance, and described information source is supported second protocol and carried out by the protocol conversion of second protocol to the first agreement described information source data before uploading described information source data.
14. devices as claimed in claim 13, is characterized in that, described receiving element also for:
Receive the access application that application program is submitted to, if determine, described application program is for accessing this information source platform for the first time, then access the access account needed for described information source platform according to the described application program of described access application generation and authorize mark, and being defined as the access rights of the unified interface between the open described information source platform of described application program and application side according to the described access account generated and mandate mark.
15. devices as claimed in claim 14, is characterized in that, described receiving element also for:
After the data call request receiving application program initiation, before determining according to the mark of described information source data the second protocol that corresponding information source adopts, obtain the access account and mandate mark of carrying in described data call request, according to described access account with when authorizing mark to determine described application program by authority checking, determine to allow to use described information source Data Identification to perform subsequent operation.
16. devices as described in claim 13,14 or 15, is characterized in that, described transmitting element also for:
The up-to-date information source data that each information source provides are obtained according to setting cycle, wherein, for any one information source, often obtain once up-to-date information source data, all judge whether corresponding any one information source described exists corresponding tables of data, if so, then the up-to-date information source data that any one information source described provides is upgraded in the tables of data of its correspondence, otherwise corresponding any one information source described creates new tables of data and stores information source data up-to-date accordingly.
CN201310681187.1A 2013-12-13 2013-12-13 A kind of call method and device of information source data Active CN104717178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310681187.1A CN104717178B (en) 2013-12-13 2013-12-13 A kind of call method and device of information source data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310681187.1A CN104717178B (en) 2013-12-13 2013-12-13 A kind of call method and device of information source data

Publications (2)

Publication Number Publication Date
CN104717178A true CN104717178A (en) 2015-06-17
CN104717178B CN104717178B (en) 2018-11-30

Family

ID=53416152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310681187.1A Active CN104717178B (en) 2013-12-13 2013-12-13 A kind of call method and device of information source data

Country Status (1)

Country Link
CN (1) CN104717178B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787302A (en) * 2016-02-23 2016-07-20 北京金山安全软件有限公司 Application processing method and device and electronic equipment
CN106412009A (en) * 2016-08-29 2017-02-15 郑州悉知信息科技股份有限公司 Interface calling method and device
CN107196936A (en) * 2017-05-19 2017-09-22 广东万丈金数信息技术股份有限公司 Interface retransmission method, system, computer equipment and storage medium
CN107463687A (en) * 2017-08-10 2017-12-12 中国民航信息网络股份有限公司 More hotel's platform querying methods and system
CN107729345A (en) * 2017-07-27 2018-02-23 上海壹账通金融科技有限公司 Website data processing method, device, website data processing platform and storage medium
CN108200077A (en) * 2018-01-18 2018-06-22 北京网信云服信息科技有限公司 A kind of method and device of calling interface
CN108632325A (en) * 2017-03-24 2018-10-09 中国移动通信集团浙江有限公司 A kind of call method and device of application
CN109150893A (en) * 2018-09-12 2019-01-04 山东中创软件工程股份有限公司 A kind of service request retransmission method and relevant apparatus
CN109558398A (en) * 2018-10-31 2019-04-02 平安医疗健康管理股份有限公司 Data cleaning method and relevant apparatus based on big data
CN110826096A (en) * 2019-10-29 2020-02-21 杭州趣链科技有限公司 Data source sharing method based on block chain

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020133582A1 (en) * 2000-12-21 2002-09-19 Atsushi Shibata Network management system
WO2004040876A2 (en) * 2002-11-01 2004-05-13 Nokia Corporation Content delivery in hybrid networks
US20050005027A1 (en) * 2003-04-18 2005-01-06 International Business Machines Corporation Method and system for obtaining data through an IP transmission network by using an optimized domain name server
CN1787476A (en) * 2004-12-06 2006-06-14 北京三星通信技术研究有限公司 Wide band real time multi media service integrated service system
CN101216834A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 File downloading method, system, device and server
CN101345758A (en) * 2008-08-14 2009-01-14 中兴通讯股份有限公司 Report normalization processing method, apparatus and system
CN101447862A (en) * 2008-10-31 2009-06-03 神州数码金程(北京)科技有限公司 Security exchange system and security exchange method thereof
CN102571550A (en) * 2010-12-30 2012-07-11 北京亿阳信通软件研究院有限公司 General information interaction platform and method
CN102857482A (en) * 2011-06-30 2013-01-02 北京新媒传信科技有限公司 Method and system for transmitting data on basis of multiple servers
CN102938731A (en) * 2012-11-22 2013-02-20 北京锐易特软件技术有限公司 Exchange and integration device and method based on proxy cache adaptation model
CN103379086A (en) * 2012-04-11 2013-10-30 联想(北京)有限公司 Method for realizing hot-plugging data interaction and data service center

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020133582A1 (en) * 2000-12-21 2002-09-19 Atsushi Shibata Network management system
WO2004040876A2 (en) * 2002-11-01 2004-05-13 Nokia Corporation Content delivery in hybrid networks
US20050005027A1 (en) * 2003-04-18 2005-01-06 International Business Machines Corporation Method and system for obtaining data through an IP transmission network by using an optimized domain name server
CN1787476A (en) * 2004-12-06 2006-06-14 北京三星通信技术研究有限公司 Wide band real time multi media service integrated service system
CN101216834A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 File downloading method, system, device and server
CN101345758A (en) * 2008-08-14 2009-01-14 中兴通讯股份有限公司 Report normalization processing method, apparatus and system
CN101447862A (en) * 2008-10-31 2009-06-03 神州数码金程(北京)科技有限公司 Security exchange system and security exchange method thereof
CN102571550A (en) * 2010-12-30 2012-07-11 北京亿阳信通软件研究院有限公司 General information interaction platform and method
CN102857482A (en) * 2011-06-30 2013-01-02 北京新媒传信科技有限公司 Method and system for transmitting data on basis of multiple servers
CN103379086A (en) * 2012-04-11 2013-10-30 联想(北京)有限公司 Method for realizing hot-plugging data interaction and data service center
CN102938731A (en) * 2012-11-22 2013-02-20 北京锐易特软件技术有限公司 Exchange and integration device and method based on proxy cache adaptation model

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787302A (en) * 2016-02-23 2016-07-20 北京金山安全软件有限公司 Application processing method and device and electronic equipment
CN105787302B (en) * 2016-02-23 2019-05-17 珠海豹趣科技有限公司 A kind of processing method of application program, device and electronic equipment
CN106412009A (en) * 2016-08-29 2017-02-15 郑州悉知信息科技股份有限公司 Interface calling method and device
CN108632325A (en) * 2017-03-24 2018-10-09 中国移动通信集团浙江有限公司 A kind of call method and device of application
CN107196936A (en) * 2017-05-19 2017-09-22 广东万丈金数信息技术股份有限公司 Interface retransmission method, system, computer equipment and storage medium
WO2019019650A1 (en) * 2017-07-27 2019-01-31 深圳壹账通智能科技有限公司 Website data processing method and apparatus, website data processing platform and storage medium
CN107729345A (en) * 2017-07-27 2018-02-23 上海壹账通金融科技有限公司 Website data processing method, device, website data processing platform and storage medium
CN107729345B (en) * 2017-07-27 2020-08-18 深圳壹账通智能科技有限公司 Website data processing method and device, website data processing platform and storage medium
CN107463687A (en) * 2017-08-10 2017-12-12 中国民航信息网络股份有限公司 More hotel's platform querying methods and system
CN108200077A (en) * 2018-01-18 2018-06-22 北京网信云服信息科技有限公司 A kind of method and device of calling interface
CN109150893A (en) * 2018-09-12 2019-01-04 山东中创软件工程股份有限公司 A kind of service request retransmission method and relevant apparatus
CN109150893B (en) * 2018-09-12 2021-10-26 山东中创软件工程股份有限公司 Service request forwarding method and related device
CN109558398A (en) * 2018-10-31 2019-04-02 平安医疗健康管理股份有限公司 Data cleaning method and relevant apparatus based on big data
CN109558398B (en) * 2018-10-31 2023-09-19 深圳平安医疗健康科技服务有限公司 Data cleaning method based on big data and related device
CN110826096A (en) * 2019-10-29 2020-02-21 杭州趣链科技有限公司 Data source sharing method based on block chain

Also Published As

Publication number Publication date
CN104717178B (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN104717178A (en) Information source data calling method and device
CN103049563B (en) Server, accounting voucher generate system and accounting voucher generates method
CN105472045A (en) Database migration method and database migration device
CN109194714B (en) File pushing method and device, terminal device and storage medium
CN109684375A (en) Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
CN111488995B (en) Method, device and system for evaluating joint training model
KR20100086677A (en) Method and apparatus for providing community widget
KR20110092516A (en) Cloud printing system using mobile terminal and method thereof
CN109241722A (en) For obtaining method, electronic equipment and the computer-readable medium of information
CN111382252A (en) Question category determination method, device, equipment and medium based on user request
KR20170127806A (en) System and method for generating and submitting a legal document using a mobile application
JP2002351297A (en) Material utilizing system and its method
US10623929B1 (en) Method and apparatus for shared mobile device app with unique business function adaptation and rendering
JP6295577B2 (en) Server apparatus, program, and information providing method
CN103067398A (en) Method and equipment for achieving third-party application accessing user data
KR20090002252A (en) System and method for collaborative work of document
CN103139306A (en) Method facing forwarding of browse clipping page information and obtaining of enterprise cooperation information interaction
CN110276028A (en) For the treating method and apparatus of the inner link functional requirement of operation system
US11950173B2 (en) Method of determining shared service index based on shared service of communication credential
US20160366125A1 (en) Service providing method, and service providing device
US20120303441A1 (en) Computer-readable medium storing information processing program, and information processing apparatus, system, and method
CN110020179A (en) A kind of account searching method and device and terminal
CN101145936A (en) A method and system for adding tags in Web pages
KR20140101055A (en) Apparatus and method for arranging intellectual service
KR101339375B1 (en) Method for registering of lectures by using relay server, and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant