A kind of method, system and server of network service centralized management
Technical field
The present invention relates to the technology of network service, particularly a kind of method, system and server of network service centralized management.
Background technology
Along with development of Communication Technique, how in network, particularly obtaining network service data in mobile communications network becomes a problem demanding prompt solution.In order to address this problem, be provided with etwork service engine at network side at present, this etwork service engine provides functional soft interface for different terminals, web service interface (WS promptly is provided, Web service), this Web service can insert different terminals as API (API) interface.Be provided with functional computing in this etwork service engine,, obtain the network service data that different terminals will obtain and offer different terminals by the server end of different business data is provided in this functional computing visit Internet.Here, different terminals is portable terminal or computer etc., respectively by mobile communications network or Internet access network service-Engine.In the Internet, a plurality of etwork service engines can be arranged, different terminals then is provided with definite by the user who uses terminal by which etwork service engine of network insertion.
Fig. 1 is for obtaining the system configuration schematic diagram of network service data in the prior art, as shown in the figure, this system comprises terminal and a plurality of etwork service engine, a plurality of etwork service engines provide different network service datas respectively, be expressed as in the drawings etwork service engine 1, etwork service engine 2 ..., etwork service engine n, wherein
Terminal is used to determine to provide the etwork service engine of the network service data that will obtain, and sends network service request to determined etwork service engine;
Determined etwork service engine, be used for network service request that receiving terminal sends after, the network service data that feedback terminal will obtain is given terminal.
As can be seen, network service request all is directly to send to corresponding etwork service engine by terminal, it should be noted that each terminal, send the etwork service engine of a plurality of different network service request to correspondence at one time possibly, these requests all need to take Internet resources.
Therefore, this method exists shortcoming, because different network service datas is provided by different etwork service engines, when so terminal will be obtained a certain specific network service data, after also needing to determine the etwork service engine network address of this network service data is provided, in determined etwork service engine, obtain, obtain the process of network service data to terminal and made obstacle, reduced the efficient of from network, obtaining network service data, and user experience is poor.
Summary of the invention
In view of this, the invention provides a kind of method of network service centralized management, this method can make terminal do not need to determine the to provide services on the Internet etwork service engine network address of data, just can obtain the network service data that needs, has cleared away the obstacle that terminal is obtained network service data.
The present invention also provides a kind of system of network service centralized management, this system can make terminal do not need to determine the to provide services on the Internet etwork service engine network address of data, just can obtain the network service data that needs, clear away the obstacle that terminal is obtained network service data.
The present invention also provides a kind of server of network services centralized management, this server can make terminal do not need to determine the to provide services on the Internet etwork service engine network address of data, just can obtain the network service data that needs, clear away the obstacle that terminal is obtained network service data.
According to above-mentioned purpose, technical scheme of the present invention is achieved in that
A kind of method of network service centralized management, be provided for managing concentratedly the web service interface WS service centre of at least one etwork service engine, the network service data information of the data that etwork service engine is provided services on the Internet that this WS service center stores is managed and the corresponding relation of its network address, this method also comprises:
The etwork service engine network address of being managed of the network service data information correspondence that this request is carried is determined in the network service data request of the network service data information of carrying that WS service centre receiving terminal sends according to stored relation;
WS service centre according to this network address set up with this etwork service engine between communicate by letter, obtain the network service data that this request asks after, offer terminal.
Described WS service centre is the network service data of buffer memory map network service data information also, determines that in WS service centre this method also comprises before the etwork service engine network address of the network service data information correspondence that this request is carried:
WS service centre judges whether the network service data of the network service data information correspondence that this request of buffer memory is carried, if the network service data information that this request of buffer memory is carried by WS service centre sends to terminal; If not, then carry out the step that WS service centre determines the etwork service engine network address of being managed of the network service data information correspondence that this request is carried.
The network service data of the map network service data information of described WS service centre buffer memory sets in advance, or when the etwork service engine of being managed obtains network service data according to buffer memory rule institute buffer memory.
A kind of system of network service centralized management comprises terminal and at least one etwork service engine, and this system also comprises the WS service centre that is used to manage concentratedly at least one etwork service engine, wherein,
Terminal is used for sending the network service data request of carrying network service data information to WS service centre; Receive the network service data that WS service centre returns;
WS service centre, be used for receiving the network service data request from terminal, according to the network service data information of the data that etwork service engine is provided services on the Internet of storing and the corresponding relation of its network address, determine the etwork service engine network address of being managed of the network service data information correspondence that this request is carried, communication between foundation and this etwork service engine, obtain the network service data of being asked, send to terminal;
Etwork service engine is used for setting up with WS service centre and communicates by letter, and provides the network service data of being asked to WS service centre.
Described WS service centre is map network service data information cache network service data also,
Described WS service centre, the network service data of the network service data information correspondence that also is used to judge whether that this request of buffer memory is carried, if, the network service data information that this request of buffer memory is carried by WS service centre sends to terminal, if not, then determine the etwork service engine network address of being managed of the network service data information correspondence that this request is carried again.
The network service data of described WS service centre map network service data information cache sets in advance, or when etwork service engine obtains network service data according to buffer memory rule institute buffer memory.
A kind of WS service centre, this WS service centre is used to manage concentratedly at least one etwork service engine, comprising: WS request processing module, WS service database, WS service request feedback module and WS network service data acquisition module, wherein,
The WS request processing module, be used for receiving the network service data request of carrying network service data information from terminal, network service data information inquiry WS service database according to this request is carried obtains providing the etwork service engine network address of being managed of the network service data of being asked and this request to send to WS network service data acquisition module inquiry;
The WS service database is used to store the network service data information of the data that etwork service engine is provided services on the Internet of being managed and the corresponding relation of its network address;
WS network service data acquisition module, communication between the etwork service engine that is used for setting up and being managed according to the etwork service engine network address of being managed that the network service data of asking is provided that receives, the network service data information of carrying according to this request that receives gets access to corresponding network service data by communication, sends to WS service request feedback module;
WS service request feedback module after being used to receive the network service data of WS network service data acquisition module transmission, sends to terminal.
Described WS service database also is used to store the network service data information of institute's buffer memory network service data;
Described WS service centre also comprises WS service result data cache module, is used for map network service data information cache network service data;
The WS request processing module, the Query Result that also is used for obtaining behind inquiry WS service database is the WS service result data cache module when network service data that meets the network service data information that this request carries is arranged, and this request is sent to WS service request feedback module;
WS service request feedback module also is used for obtaining network service data according to the network service data information that this request that receives from the WS request processing module is carried from WS service result metadata cache, sends to terminal.
The network service data of described WS service result data cache module buffer memory sets in advance, or when WS network service data acquisition module gets access to network service data according to buffer memory rule institute buffer memory.
From such scheme as can be seen, the present invention is provided with WS service centre at network side, this WS service centre can be interconnected with a plurality of etwork service engines, manage a plurality of etwork service engines, after the network service data request that receives the terminal transmission, according to the network service data information searching that carries to corresponding etwork service engine, from the etwork service engine of correspondence, obtain the network service data of being asked after, offer terminal.Because terminal only need send to the network service data request WS service centre of setting, and behind the etwork service engine network address of the data that do not need to determine again to provide services on the Internet, send to definite etwork service engine, just can get access to the network service data of being asked, institute thinks that terminal obtains network service data and cleared away obstacle, provide convenience, improved the efficient and the user experience that from network, obtain network service data.
Description of drawings
Fig. 1 is for obtaining the system configuration schematic diagram of network service data in the prior art;
Fig. 2 is the system configuration schematic diagram of network service centralized management provided by the invention;
Fig. 3 is the WS service centre structural representation of network service centralized management provided by the invention;
Fig. 4 is the method flow diagram of network service centralized management provided by the invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, below lift specific embodiment and, the present invention is described in more detail with reference to accompanying drawing.
Development along with the WS technology, in network, provide the etwork service engine of various types of networks service data to get more and more, if allow terminal when obtaining a certain type network service data, just must determine to provide the etwork service engine network address of the type network service data, from determined etwork service engine, obtain, obtain network service data to terminal undoubtedly and brought obstacle.Particularly, when the etwork service engine that a certain network service data is provided has a plurality of, make terminal can't determine to insert which etwork service engine more and obtain the network service data of being asked, obtain the efficient of network service data and make user experience poor thereby reduced terminal.
Therefore, the present invention is provided with WS service centre in network, and this WS service centre is used for the etwork service engine of supervising the network, stores the network address of etwork service engine and the corresponding relation of the network service data information that this etwork service engine is provided.Terminal is when obtaining network service data, do not need to determine to provide the etwork service engine network address of the network service data of asking, the network service data request that only needs to carry network service data information sends to WS service centre (sending according to the WS service centre network address that sets in advance in terminal), after WS service centre receives this request, determine corresponding etwork service engine according to the network service data information that this request is carried, from the etwork service engine of correspondence, obtain the network service data of being asked, and then send to terminal.Like this, terminal only need be determined the WS service centre network address, just can obtain the network service data of being asked, thereby has cleared away the obstacle that terminal is obtained network service data, has improved terminal and obtains the efficient of network service data and improve user experience.
Fig. 2 is the system configuration schematic diagram of network service centralized management provided by the invention, comprise terminal, be used for the WS service centre of supervising the network service-Engine and a plurality of etwork service engines of network as the WS request end (among the figure with etwork service engine 1, etwork service engine 2 ...., etwork service engine n represents), wherein
Terminal is used for sending the network service data request of carrying network service data information to WS service centre; Receive the network service data of being asked that WS service centre sends;
WS service centre, be used for the network service data request that receiving terminal sends, the network service data information of carrying according to this request determines to provide the etwork service engine network address of the network service data of asking, by the communication between foundation of the determined etwork service engine network address and the etwork service engine, obtain the network service data of being asked from this etwork service engine, send to terminal;
Etwork service engine is used for setting up with WS service centre and communicates by letter, and provides the network service data of being asked to WS service centre.
In the present invention, because the WS service center stores has the network address of etwork service engine and the corresponding relation of its data message of providing services on the Internet, so just can determine the position that provides in the network of the etwork service engine place of the network service data of asking according to this corresponding relation, and set up communication and obtain the network service data of asking.Wherein, network service data information can for the keyword of network service data type information, network service data or/and the attribute information of network service data etc.
In the present invention, all right buffer memory network service data in WS service centre, the network service data of this buffer memory also obtains from etwork service engine, and the network service data information of record institute buffer memory network service data, when the entrained network service data information of the network service data request that receives during corresponding to the network service data of institute's buffer memory, then do not need to determine again etwork service engine, from etwork service engine, obtain, and directly the network service data of being asked of institute's buffer memory is sent to terminal.When the buffer memory network service data, WS service centre also can be according to the buffer memory rule that is provided with, and the network service data that terminal is frequently obtained carries out buffer memory.
In the present invention, the WS service centre in the network can provide service for a plurality of terminals, is a plurality of terminals data of providing services on the Internet.
Fig. 3 is the WS service centre structural representation of network service centralized management provided by the invention, the WS center comprises WS request processing module, WS service database, WS service result data cache module, WS service request feedback module and WS network service data acquisition module at least, wherein
The WS request processing module, after being used for the network service data request of the network service data information of carrying that receiving terminal sends, the network service data information inquiry WS service database that carries according to this request, according to Query Result, this request is sent to WS service request feedback module or WS network service data acquisition module, the etwork service engine network address of the network service data that provides this request to ask is sent to WS network service data acquisition module;
In the present invention, when Query Result is the WS service result data cache module when network service data that meets the network service data information that this request carries is arranged, then this request is sent to WS service request feedback module; When if Query Result provides the network service data Engine-Network address of the network service data of asking, then should ask and determined etwork service engine address sends to WS network service data acquisition module;
The WS service database, be used for the network service data information that the storage networking service-Engine provided and the corresponding relation of its network address, the network service data information of storage institute buffer memory network service data, accept the inquiry of WS request processing module after, return Query Result;
WS service request feedback module, be used for receiving this network service data request from the WS request processing module, the network service data information of carrying according to this request is obtained the corresponding network service data of institute's buffer memory from WS service result metadata cache after, after perhaps receiving the network service data of WS network service data acquisition module transmission, send to terminal;
WS service result data cache module is used for the network service data of buffer memory map network service data information;
In the present invention, the network service data that WS network service data acquisition module can be got access to is cached in the WS service result data cache module according to the buffer memory rule of setting, and by WS service result data cache module with corresponding caching record, promptly the network service data information stores is in the WS service database;
WS network service data acquisition module, be used to receive the etwork service engine network address and this request that the network service data that this request asks is provided, the etwork service engine network address of the network service data of asking according to this request set up and etwork service engine between communication, the network service data information of carrying according to this request gets access to corresponding network service data by communication, sends to WS service request feedback module.
The described embodiment of Fig. 3 is cached with network service data in WS service centre, these data be current obtain network service data before according to the buffer memory rule of setting, from corresponding etwork service engine, obtain, after the buffer memory rule can reach the number of times of setting for the number of times that obtains a certain type network service data, obtain back buffer memory etc.
Certainly, also buffer memory network service data in WS service centre not, at this moment, just can not comprise WS service result data cache module in the WS service centre, at this moment, also just not having the Query Result that obtains from the WS service database is the situation that WS service result data cache module has the network service data that meets the network service data information that this request carries.
Fig. 4 is the method flow diagram of network service centralized management provided by the invention, the WS service centre of a plurality of etwork service engines of management is set in network, the network service data information that etwork service engine provided and the corresponding relation of its network address have been stored in this WS service centre, the network service data of all right buffer memory map network service data information of this WS service centre, the data of this buffering can be predefined, also can be to store when obtaining network service data according to the buffer memory rule of setting is former from etwork service engine, its concrete steps be:
The network service data request of the network service data information of carrying that step 401, WS service centre receiving terminal send;
Step 402, WS service centre judge whether the network service data of the network service data information correspondence that this request of buffer memory is carried, if, execution in step 403; If not, execution in step 404;
The network service data information that this request of buffer memory is carried by step 403, WS service centre sends to terminal, finishes;
Step 404, WS service centre determine the etwork service engine network address of the network service data information correspondence that this request is carried according to stored relation;
Step 405, WS service centre are set up with this etwork service engine according to this etwork service engine network address and are communicated by letter, and obtain the network service data of the network service data information correspondence that this request carries;
In this step, WS service centre can carry out buffer memory according to the buffer memory rule of setting with the network service data map network service data information that acquires, so that the network service data of institute's buffer memory directly is provided for subsequent request, save the time that terminal is obtained network service data, improve user experience;
Step 406, WS offer terminal with the network service data that gets access to, and finish.
Method provided by the invention, system and server can be applied in the Internet, are the data of providing services on the Internet by the terminal of wireless mode or wired mode access internet.
As can be seen, method provided by the invention, system and server, the WS service centre of an etwork service engine in the centralized management network is set, thereby can not need terminal inquiry that the etwork service engine network address of the network service data of being asked is provided, just can directly visit this WS service centre and get access to the network service data of asking, reduced the dependence of terminal, improved the flexibility and the convenience of network service etwork service engine.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.