Summary of the invention
The present invention relates to the information access method in the instant messaging, at the defective of calling difficulty mutually that causes owing to shortage relevance between instant communicating system and the information stores management system in the prior art, provide a kind of method that makes communicating terminal can in instant messaging, use information stores management server.
The present invention solves the scheme that its technical problem adopts: the information access method in a kind of instant messaging is provided, it is characterized in that, by pass-along message between instant communication server and information stores management server, it is related that the two is set up, and first communicating terminal is by coming access information in the instant communication server visit first information storage managing server.
Described method comprises the steps:
S1. instant communication server sends first request message to first information storage managing server, the request access information;
S2. described first information storage managing server carries out authentication according to described first request message, carries out corresponding accessing operation, and sends first response message to described instant communication server.
In the method for the invention, described first request message comprises session value, type of message, operand and authentication information, and described first response message comprises session value, type of message and first information content.
In the method for the invention,
Described step S1 further comprises: described instant communication server is preserved session value wherein when producing described first request message;
Described step S2 further comprises: described instant communication server receives described first response message, and relatively whether the session value of the session value in this first response message and its preservation is identical, if identical, then deletes the session value of preserving.
In the method for the invention, comprised further before described step S1 that described first communicating terminal sends access instruction to described first information storage managing server; Comprise further that after described step S2 described instant communication server sends to described first communicating terminal with described first information content.
In the method for the invention, described access instruction is the information request instruction; Described instant communication server generates information request message, as first solicited message; Described accessing operation is for reading first information content in described first information storage managing server; Described first response message is an information request response message.
In the method for the invention, described first information content is managed server stores by described second communicating terminal in described first information storage managing server by second information stores.
In the method for the invention, described access instruction is the information stores instruction; Described instant communication server generates information stores message, and as first request message, this information stores message also comprises second information content; Described accessing operation is storage second information content in described first information storage managing server; Described first response message is the information stores response message.
In the method for the invention, described second communicating terminal reads described second information content by second information stores management server from described first information storage managing server.
Described method also comprises the steps:
P1. described second communicating terminal sends access instruction to described second information stores management server;
P2. second information stores management server sends second request message to described first information storage managing server, the request access information;
P3. described first information storage managing server carries out authentication according to described second request message, carries out corresponding accessing operation, and sends second response message to described second information stores management server, and this second response message comprises the 3rd information content;
P4. described second information stores management server sends to described second communicating terminal with described the 3rd information content.
In the method for the invention, described first information storage managing server comprises one of memory device, storage medium and storage server.
In the method for the invention, described second request message comprises session value, type of message, operand, and described second response message also comprises session value and type of message.
In the method for the invention,
Described step P1 further comprises: described second information stores management server is preserved session value wherein when producing described second request message;
Described step P2 further comprises: described second information stores management server receives second response message, and whether the session value in more described second response message is identical with the session value of its preservation, if identical, just deletes the session value of preserving.
In the method for the invention, described access instruction is the information request instruction; Described second information stores management server generates information request message, as second request message; Described accessing operation is for reading the 3rd information content in described first information storage managing server; Described second response message is an information request response message.
In the method for the invention, described access instruction is the information stores instruction; Described second information stores management server generates information stores message, and as second request message, described information stores message also comprises the 4th information content; Described accessing operation is storage the 4th information content in described first information storage managing server; Described second response message is the information stores response message.
Implement the information access method in the instant messaging of the present invention, has following beneficial effect: by pass-along message between instant communication server and information stores management server, it is related that the two is set up, communicating terminal just can come access information by instant communication server visit information storage managing server in instant communication process, so, both increased the information storage means in the instant messaging process, and again information stores had been managed the use field of system and expand the instant messaging field to.
Embodiment
Fig. 1 is the block diagram of first kind of implementation method of the present invention.As shown in Figure 1, in the method, instant communication server provides the instant messaging service for the user, and the user can sign in to by first communicating terminal such as portable terminal or PC (personal computer is called for short PC) client and uses this service on the instant communication server.Can adopt WV (Wireless Village between portable terminal and the instant communication server, be called for short WV) etc. agreement carry out communication, can adopt HTTP agreements such as (Hypertext ransferr Protocol are called for short HTTP) to carry out communication between pc client and the instant communication server; Information stores management server provides the Information Access service for the user.The user can sign in on the information stores management server by portable terminal or pc client and uses these services.Portable terminal and information stores are managed agreements such as can adopting SyncML between the server and are carried out communication, and pc client and information stores are managed agreements such as can adopting HTTP between the server and carried out communication.The agreement that is adopted when communication between instant communication server and the information stores management server can be http protocol or proprietary protocol etc., but no matter use which kind of agreement, a session all comprises a request message and a response message, and request message is the same with the session value that response message is comprised in the same session, the session value of different sessions is generally different, and session value is produced by a side who initiates request.Two servers message transmitted in communication comprises session value, type of message, and operand, similar information such as authentication information as selection, also can comprise similar information such as the information content.
Fig. 2 is the flow chart of first embodiment of the invention.In this embodiment, the user reads the information that is stored on the first information storage managing server by send the information request instruction to instant communication server, and this process comprises following steps:
201. the user who signs in on the instant communication server wants to use the address list information that is kept on the first information storage managing server as " 123456 ", just send information request instruction as " address list request instruction " to instant communication server.
202. instant communication server is received this information request instruction, judges and learns that this is " an address list request instruction ", just send information request message as " address list request message " to first information storage managing server.Comprise the session value that produced by instant communication server in this message as " 0x1001 ", type of message is as " address list information request ", and operand is to initiate the requested operation object as " 123456 ", and authentication information is that password is as information such as " 111111 ".Instant communication server will be preserved the session value of new generation as " 0x1001 " always, until receiving that information request response message that first information storage managing server returns is as " address list request response ".
After 203. first information storage managing server receives that information request message is as " address list request message ", learn that by the type of message judgement this is " address list information a request information; whether exist so check the user who is designated " 123456 "; if exist; whether be this user's preset password; when these two conditions all satisfy; the request of receiving is exactly a legitimate request if reexamining password " 111111 ", next just this user's of preserving on the first information storage managing server address list information can be returned to instant communication server, the information request response message of returning as the session value that comprises information request message in " address list request response " and bring as " address list request message " as " 0x1001 ", comprise that also type of message is as " address list information response ", the information content be address list information as " Zhang San ", " Li Si " etc.
After 204. instant communication server receives that information request response message is as " address list request response ", learn that as " 0x1001 " judgement this is the response message of user " 123456 " according to session value wherein, just delete the session value " 0x1001 " of preserving, information request response message as the information content in " address list request response " as " Zhang San ", " Li Si " returns to pc client.
Fig. 3 is the flow chart of second embodiment of the invention.In this embodiment, the user is kept at the information of creating on the storage managing server by send the information stores instruction to instant communication server, and this process comprises following steps:
Be saved on the first information storage managing server 301. sign in to the address list information that the user on the instant communication server will newly create as " 123456 " desire, just send information stores instruction as " address list store instruction " to instant communication server.
302. instant communication server is judged and is learnt that this is " an address list store instruction ", just send information stores message as " address list storing message " to first information storage managing server after receiving the information stores instruction.Comprise the session value that produces by instant communication server in this message as " 0x2001 ", type of message is as " address list information storage request ", operand is to initiate the requested operation object as " 123456 ", authentication information is that password is as " 111111 ", the information content be the new address list information of creating as " king five ", " fiber crops six " etc.Instant communication server will be preserved the session value of new generation as " 0x2001 " always, until receiving that information stores response message that first information storage managing server returns is as " address list memory response message ".
After 303. first information storage managing server receives that information stores message is as " address list storing message ", learn that by the type of message judgement this is " address list information storage a request information; whether exist so check user " 123456 "; if exist; whether be this user's preset password; when these two conditions all satisfy; the request of receiving is exactly a legitimate request if reexamining password " 111111 ", the address list information of then preserving user " 123456 " is as " king five ", " fiber crops six " etc. give instant communication server return information memory response message as " address list memory response message " again.Comprise session value that information stores message brings as " address list storing message " in the message as " 0x2001 ", also comprise type of message as " address list information memory response ", the information content is to preserve operating result as " operating successfully " etc.
After 304. instant communication server receives that the information stores response message is as " address list memory response message ", learn that as " 0x2001 " judgement this is the response message of user " 123456 " according to session value wherein, just the session value of deletion preservation returns to pc client to the information stores response message as the storage operation result in " address list memory response message " as " operating successfully " as " 0x2001 ".
The present invention also provides a kind of replacement scheme of such scheme, below will specifically describe this replacement scheme.
Fig. 4 is the block diagram of second kind of implementation method of the present invention.As shown in Figure 4, in the method, can between instant communication server and second information stores management server, use and independently share first information storage managing server.Instant communication server and second information stores management server independently carry out alternately with first information storage managing server respectively, and do not carry out direct communication each other, use http protocol or proprietary protocol etc. to carry out communication between instant communication server or second information stores management server and the first information storage managing server.A session comprises a request message and a corresponding with it response message, and request message is the same with the session value that response message is comprised in the same session, and the session value of different sessions is generally different, and session value is produced by a side who initiates request.Message transmitted comprises session value in the communication, and similar information such as type of message as selection, also can comprise similar information such as operand, authentication information, the information content.
Fig. 5 is the flow chart of third embodiment of the invention.In this embodiment, first communicating terminal such as pc client read the information that is stored on the first information storage managing server by send the information request instruction to instant communication server; Second communicating terminal such as portable terminal will be saved in the setting of address list information on the first information storage managing server by sending the information stores instruction to second information stores management server.First information storage managing server can be memory device or storage medium or storage server.
501. user " 123456 " sends information stores instruction as " address list is provided with instruction " by portable terminal to information stores and management server.
After 502. second information stores management server is received the information stores instruction, judge and learn that this is as " address list is provided with instruction ", just send information stores message as " address list is provided with message " to first information storage managing server.Comprise the session value that produces by second information stores management server in this message, as " 0x3001 ", type of message is as " being provided with the address list information request ", operand is to initiate the requested operation object as " 123456 ", the information content is to need the address list of setting as " Zhang San ", " Li Si " etc.The session value that second information stores management server will be preserved new generation always is as " 0x3001 ", until receiving that the information stores response message is as " address list is provided with response message ".
503. first information storage managing server is after receiving that information stores message is as " address list is provided with message ", learn that by the type of message judgement this is " the address list information request information to be set; so storage user's " 123456 " address list is managed server return information memory response message as " address list is provided with response message " to second information stores again.Comprise session value that information stores message brings as " address list is provided with message " in this message as " 0x3001 ", type of message is " the address list information response is set ", and the information content is the setting operation result as " operating successfully " etc.
After 504. second information stores management server receives that information stores response message that first information storage managing server sends is as " address list is provided with response message ", according to wherein session value as " 0x3001 ", judge and learn that this is the response message of user " 123456 ", the session value of deletion preservation is transmitted to portable terminal as the setting operation result in " address list is provided with response message " as " operating successfully " with the information stores response message as " 0x3001 " then.
505. user " 123456 " sends information request instruction as " address list request instruction " by pc client to instant communication server.
506. instant communication server is judged and is learnt that this is " an address list request instruction " after receiving information request instruction as " address list request instruction ", just send information request message as " address list request message " to first information storage managing server.Comprise the session value that produced by instant communication server in this message as " 0x4001 ", type of message is " address list information request ", and operand is user " 123456 ", and authentication information is a password, as " 111111 " etc.Instant communication server will be preserved the session value of new generation as " 0x4001 " always, until receiving that information request response message is as " address list request response ".
507. first information storage managing server receives that information request message is as " address list request message ", judge by type of message and to learn that this is that " address list information request information; whether exist so check user " 123456 "; if exist; whether be this user's preset password; when these two conditions all satisfy; the request of receiving is exactly a legitimate request if reexamining password " 111111 " next just can return to instant communication server with this user's of preserving on the first information storage managing server address list information.The information request response message of returning as the session value that comprises information request message in " address list request response " and bring as " address list request message " as " 0x4001 ", comprise that also type of message is " address list information response ", the information content is that address list information is as " Zhang San ", " Li Si ", this information is exactly the address list information that the user is provided with on first information storage managing server by second information stores management server by portable terminal.
508. instant communication server receives that information request response message that first information storage managing server sends is as " address list request response ", according to wherein session value as " 0x4001 ", judge and learn that this is the response message of user " 123456 ", the session value that deletion is preserved is as " 0x4001 ", information request response message is transmitted to pc client as the address list information in " address list request response " message, and this information is exactly the address list information that the user is provided with on first information storage managing server by second information stores management server by portable terminal.
Fig. 6 is the flow chart of fourth embodiment of the invention.Here, in this embodiment, first communicating terminal such as pc client are kept at the information of creating on the first information storage managing server by send the information stores instruction to instant communication server.Second communicating terminal such as portable terminal read the information that is stored on the first information storage managing server by sending the information request instruction to second information stores management server.
601. user " 123456 " sends information stores instruction as " address list store instruction " by pc client to instant communication server.
602. instant communication server is judged and is learnt that this is " an address list store instruction " after receiving information stores instruction as " address list store instruction ", just send information stores message as " address list storing message " to first information storage managing server.Comprise the session value that produces by instant communication server in this message as " 0x5001 ", type of message is as " address list information storage request ", operand is to initiate the requested operation object as " 123456 ", authentication information is that password is as " 111111 ", the information content is to need the address list information of storage as " king five ", " fiber crops six " etc.Instant communication server will be preserved the session value of new generation as " 0x5001 " always, until receiving that the information stores response message is as " address list memory response message ".
After 603. first information storage managing server receives that information stores message is as " address list storing message ", judge by type of message and to learn that what receive is that " next address list information storage request information; whether have, check whether password " 111111 " is this user's the password that presets so check user " 123456 "; when these two conditions all satisfy; the request of receiving is exactly a legitimate request just is stored as " king five " and " numb six " to user's " 123456 " address list information.Send the information stores response message as " address list memory response message " to instant communication server again.Comprise session value that information stores message brings as " address list storing message " in this message as " 0x5001 ", type of message is " address list information memory response ", and the information content is that the storage operation result is as " operating successfully " etc.
After 604. instant communication server receives that information stores response message that first information storage managing server sends is as " address list memory response message ", according to wherein session value as " 0x5001 ", judge and learn that this is the response message of user " 123456 ", the session value of deletion preservation is transmitted to pc client with the information stores response message as the storage operation result in " address list memory response message " as " 0x5001 " then.
605. user " 123456 " sends the information request instruction by portable terminal as " address list request instruction " gives second information stores management server.
After 606. second information stores management server is received information request instruction as " address list request instruction ", judge and learn that this is " an address list request instruction ", just send information request message as " address list request message " to first information storage managing server, comprise in this message by second information stores and manage the session value of server generation as " 0x6001 ", type of message is " address list information request ", and operand is to initiate requesting users " 123456 ".The session value that second information stores management server will be preserved new generation always is as " 0x6001 ", until receiving that the information stores response message is as " address list memory response message ".
After 607. first information storage managing server receives that information request message is as " address list request message ", judge by type of message and to learn that what receive is " address list information request information; so take out user's " 123456 " address list information, send information request response message as " address list request response " to second information stores management server again.This response message comprises session value that information request message brings as " address list request message " as " 0x6001 ", type of message is as " address list information response ", the address list information of the information content as taking out, this information is exactly that instant communication server is saved in address list information on the first information storage managing server as " king five ", " fiber crops six ".
After 608. second information stores management server receives that information request response message that first information storage managing server sends is as " address list request response ", learn that as " 0x6001 " judgement this is the response message of user " 123456 " according to session value wherein, the session value that deletion is preserved is as " 0x6001 ", information request response message is transmitted to portable terminal as the address list information in " address list request response ", and this information is exactly the address list information that the user preserves on instant communication server by pc client.
By the present invention, the user is in the log-in instant communication system and under the non-log-on message storage management system situation, can use the service that information stores management system provides and the information of preservation by instant communicating system, so, on the one hand the scope of application of information stores management system is expanded to the category of instant messaging, provide an inlet that uses information stores management system quickly and easily to the user; On the other hand also for instant communicating system has increased spendable amount of information, and provide a kind of new preservation, the mode of management information, be very helpful improving user experience.