Patent ID: 8019877

Claim:
A method for processing a message, applicable to a Data Synchronization (DS) or Device Management (DM) session, comprising: receiving, by a terminal device, a notification message for requesting to establish a session sent by a server, wherein the notification message carries session management information related to the session, wherein the session management information comprises identifier (ID) information of the server, authentication information, and indication information of the session, and wherein the indication information of the session comprises at least one of purpose information, importance information, time-out information, operation information, or reply policy information of the session; acquiring, by the terminal device, the session management information related to the session in the notification message; and initiating, by the terminal device, a session connection with the server according to the session management information or acknowledging, by the terminal device, the notification message according to the session management information, generating a reply message according to an acknowledgement result, and sending the reply message to the server.