Background technology
Address list is the information aggregate for record object object oriented, mailing address and contact method, day by day frequent along with contacts, the data volume of address list is increasing, how safety preserve address list and convenient search address list become urgent demand.
For the local storage of storing of address list and two kinds of modes of remote storage, with respect to memory technology, the retrieval technique of address list is also divided into local retrieval and telereference.The data of local retrieval are kept on the terminal equipment of initiating search operaqtion, and the data of telereference are kept on other equipment.
The local storage of existing address list is kept at data on local terminal by address list program, and as upper in mobile phone, computer etc., user safeguards address list in this locality.When user need to be from address list obtaining information, from local terminal, retrieve.Because address list data is kept at local computer, can not provide telereference, the particular geographic location while therefore having limited user's retrieval; Meanwhile, each user's address book data be separate, stored on user's terminal equipment separately, the value-added service between user can not be provided.
In order to solve the deficiency of the local preserving type of address list, a kind of mobile communication recording system is provided in prior art, its objective is and make user can pass through mobile phone accessing address list.This scheme is kept at address book data in a remote data base, by address book server, provides telereference to serve; User, by mobile phone incoming communication record server, is operated database by address book server.
Existing mobile communication recording system be client directly and address book server communicate, the terminal equipment type of using due to user is different with access way, the server of stored data base is when processing the request of accessing address list, need identification and conversion variety of protocol message, therefore, when the number of users of accessing is larger, can increase widely server load, affect its service quality; In addition, if will provide service for a kind of new terminal by record server, must carry out a large amount of modifications to address book server program, workload is large and cost is high, thereby its autgmentability is poor.
Summary of the invention
The invention provides a kind of method and system thereof of accessing address list, to solve existing address book system, have address book server load greatly and the poor problem of autgmentability.
The invention provides following technical scheme:
A method for accessing address list, arranges an above address list gateway that receives respectively different agreement client request message; The method also comprises the steps:
Client is initiated the request message of accessing address list; According to the route data configuring in network, described request message is routed to address list gateway corresponding to described client protocol type;
The address list gateway of receiving described request message parses order and field from the content of request message, and according to the order parsing and field, request message is converted to unified address list protocol format, sends to address book server;
Address book server is resolved the request message content of address list protocol format, and according to the request message content of the address list protocol format parsing, address list information is carried out to respective handling.
Described method also comprises step: address book server returns to response message with unified address list protocol format to described client; Described address list gateway is converted to described response message the response message of client protocol form and sends to described client.
Described request message is for creating address list request, the request of editor's address list, inquiry address list request or deleting address list request.
An address book system, comprising:
Address book server, for Storage and Processing address list information, this address book server receives and sends data with unified address list protocol format, and storage and according to the request message contents processing address list information of the address list protocol format of receiving and parsing;
Described address book system also comprises: an above address list gateway that receives respectively different agreement client request message; Each address list gateway, be connected with described address book server, for receiving the protocol data of corresponding protocol type client, from the content of the client protocol data received, parse order and field, and according to the order parsing and field, client protocol data are converted to unified address list protocol format, send to address book server; Also for the address list protocol data that address book server is sent, be converted to client protocol data and send to client;
Wherein, the route data configuring in the data based network of described client protocol is routed to address list gateway corresponding to client protocol type.
Described address list gateway comprises: protocol conversion module, for the protocol format between conversion client protocol data and address list protocol data; Client protocol processing module, is connected with protocol conversion module, for sending the client data of reception to protocol conversion module, and the client protocol data after protocol conversion module conversion is sent to client; Address list protocol process module, is connected with protocol conversion module, and for the address list protocol data after protocol conversion module conversion is sent to address book server, and the address list protocol data that address book server is sent sends protocol conversion module to.
A described above address list gateway is separate physical entity, or a described above address list gateway is arranged on same physical entity.
Beneficial effect of the present invention is as follows:
1, the present invention is converted to the discernible address list protocol format of address book server by address list gateway by the access request unification of different agreement, and the address list protocol format message conversion that address book server is sent is the message that meets client protocol form, without address book server, variety of protocol form is identified and changed, thereby reduced widely the load of address book server.
2, owing to changing different protocol types by address list gateway, address book server is only in charge of and maintaining address book, therefore, address book system of the present invention can be used as a unified address list platform and supports various access waies, facilitates various types of access users.
3, the present invention can support new protocol type by expansion gateway, do not need address book server to do any change, thereby its favorable expandability, and cost is lower.
Embodiment
Consult shown in Figure 1A, address book system of the present invention comprises address book server 10, a plurality of address list gateways 20,30,40 that are connected with address book server.Address book server 10 is for storing user's address list information, and address list information is safeguarded; Address list gateway 20,30,40 is for carrying out protocol conversion.
Address book server 10 carries out alternately with unified address list agreement and address list gateway 20,30,40,50, receives the request message of address list protocol format and the response message of transmission address list protocol format; Address book server 10 does not carry out the conversion process of protocol format.Address list agreement can adopt the agreement of standard, also can adopt proprietary protocol.
Address list gateway 20,30,40,50 receives respectively the request message of the client of different agreement, and subscription request message is converted to unified address list protocol format sends to address book server 10, meanwhile, the address list protocol data that address list gateway 20,30,40,50 sends address book server 10 is converted to client protocol data and sends to client.As, address list gateway 20 is responsible for receiving the subscription request message accessing in C/S mode, and the data of the address list protocol format simultaneously address book server 10 being returned are converted to C/S protocol data; Address list gateway 30 is responsible for receiving the subscription request message with Web mode access protocol, and the data of the address list protocol format simultaneously address book server 10 being returned are converted to http data; Address list gateway 40 is responsible for receiving the subscription request message accessing in WAP mode, and the data of the address list protocol format simultaneously address book server 10 being returned are converted to wap protocol data; Address list gateway 50 is responsible for receiving the subscription request message accessing in short message (SMS) mode, and the data of the address list protocol format simultaneously address book server 10 being returned are converted to short message.
For address list gateway, be not limited to above-mentioned four, can expand as required.As shown in Figure 1B, this address book system, except comprising four above-mentioned address list gateways, also comprises address list gateway 60.Address list gateway 60 is responsible for receiving the subscription request message accessing in Brew (binary running environment) mode, and the data of the address list protocol format simultaneously address book server 10 being returned are converted to Brew protocol data and send to corresponding client.Certainly, according to realizing the needs of supporting access way, address list gateway also can only have wherein two, even one.
On the subscriber terminal equipment that uses address list service, be provided with client modules, this client modules is responsible for providing user interface, and user carries out the operations such as input data and data searching by this operation interface; Then, client sends to gateway operation by corresponding agreement.
Above-mentioned a plurality of address list gateways are separate physical entity; Also can be arranged on same physical entity, as completed the function of a plurality of address list gateways by a station server.
Consult shown in Fig. 2, address list gateway mainly comprises:
Protocol conversion module 200, for the protocol format between conversion client protocol data and address list protocol data.
Client protocol processing module 210, is connected with protocol conversion module 200, for sending the client data of reception to protocol conversion module 200, and the client protocol data after protocol conversion module 200 conversions is sent to client.
Address list protocol process module 220, be connected with protocol conversion module 200, for the address list protocol data after protocol conversion module 200 conversions is sent to address book server 10, and the address list protocol data that address book server 10 is sent sends protocol conversion module 200 to.
In order the request message of user's accessing address list to be routed to communication road network, close, address book system externally provides specific access code and access address, then in network, configures corresponding route data.For example, to short message mode, access provides access code " 1700 ", user is during to 1700 transmission accessing address list request, and the short messaging gateway of operator sends to address list gateway 50 according to route data by request message, and 50 of the address list gateways short messaging gateway with SMS agreement and operator is mutual.
For user's request message and the response message returning to this user, address list gateway is distinguished by user ID.
Consult shown in Fig. 3, the handling process of accessing address list is as follows:
Step 500, user initiate the request message of accessing address list by the client on terminal equipment (as mobile phone, computer etc.).As, the request of retrieval address list.
Routing gateway in step 510, network is routed to address list gateway corresponding in address book system by described request message.
Step 520, address list gateway are converted to request message unified address list protocol format and send to address book server 10.
Step 530, address book server 10 are resolved the request message content of address list protocol format and address list information are carried out to respective handling.As, according to the search condition information in request message, search qualified record.
Step 540, address book server 10 are processed after request message, with unified address list protocol format, return to response message.For processing after retrieval request, in this response message, include result for retrieval.
Step 550, address list gateway are converted to the protocol format message identical with request message by described response message, and so rear line sends.
In above-mentioned flow process, some access request for not needing address book server to return to response message to user, may not have step 540 and step 550.
With concrete operations example, be elaborated below:
The effect of the address list of preserving in
address book server 10 is to record contact data and classified data, a user can comprise many parts of contact datas, a contact data comprises several fields, such as name, sex, Mobile Directory Number, QQ number and Email etc.Example is as shown in the table:
| Field | Value |
| Name | Zhang San |
| Sex | Man |
| Mobile Directory Number | 13688875555 |
| QQ number |
?1689521 |
| ?Email |
?zhangsan@qq.com |
Address book server 10 provides the accessing operations such as establishment, retrieval (inquiry), editor and deletion for user.For initial user, can on address book server 10, create and preserve contact data, user can bring in by the client on terminal equipment and carry out network retrieval when needed, as passed through mobile phone, PC etc.
1, by mobile phone, on address book server 10, create associated person information
User is by the interface editing contact data on mobile phone, and as shown in Figure 4 A, after completing editor, the client on mobile phone sends note " New Zhang San Mobile:13699966666Email:zhangsan@qq.com " to 1700.The client protocol processing module 210 of address list gateway 50 adopts SMS agreement and Information Mobile Service business's gateway to carry out alternately, obtaining this section of character string that client is sent.Client protocol processing module 210 is given protocol conversion module 200 by the character string of this note and is changed, and first protocol process module resolves character string, draws following information:
Order: New
Field:
| Name | Zhang San |
| Mobile phone | 13699966666 |
| Email | zhangsan@qq.com |
Then the information that protocol conversion module 200 is resolved to this section is passed to address list protocol process module 220, this address list protocol process module 220 is by information package, form with address list agreement sends to address book server 10, so address book server 10 creates the information of " Zhang San ".
2, by personal computer (PC), on address book server 10, create associated person information
User is edit contact information on the client end interface of PC, has then clicked; This client is just by client/server (C/S) notice of settlement address list gateway 20, then the client protocol processing module 210 in address list gateway 20 is given protocol conversion module 200 by message and is converted to unified address list protocol format, by address list protocol process module 220, send to address book server 10, last address book server 10 creates and preserves this contact person's data, as shown in Figure 4 B.
3, by mobile phone, from address book server 10, obtain contact data, as shown in Figure 4 C:
Suppose other places of user, there is no computer at one's side, at this moment need Zhang San's telephone number.User can obtain by mobile phone short-message Zhang San's address list data.For example, from mobile phone input note:
Get Zhang San
Then the client of mobile phone sends to 1700 note, and address list gateway 50 is converted to address list protocol format after receiving this instruction, and this message is sent to address book server 10; Address book server 10 is received after this request message, the data of Zhang San in this user communication record of retrieval, and send to address list gateway 50 with address list protocol format, address list gateway 50 is converted to note form by data and sends on user's mobile phone, and at this moment user's mobile phone can be received such SMS messaging:
Zhang San's phone: 1369996666666 Email:zhangsan@qq.com
According to foregoing description, those of ordinary skill in the art can be known the realization flow of other access waies.As WAP access way, Brew access way.
From the above, adopt address list framework of the present invention, not only can preserve address book data and provide telereference for user by central server, and can support dissimilar user terminal by expansion gateway, without changing address book server, its autgmentability is very strong, and the cost of expansion is lower.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if of the present invention these are revised and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.