The invention discloses a middleware system for sharing data in mobile phone equipment and a working method. The system is applied to a system consisting of at least one server and more than two clients operating in the mobile phone equipment; the client comprise client item management units, client message conversion units, client buffer units, client communication units, client DOM operation units, client resolution strategy units and client conflict resolution units; and the server comprises a server message queue management unit, a server storage unit, a server communication unit, a server resolution strategy unit, a server DOM operation unit and a server conflict resolution unit. Through the data transmission and processing of the units, the two terminals can send messages to each other, process received messages and send the processed messages, the programs can roll back, and thus, the bidirectional synchronization of the messages between the two terminals is guaranteed.