Patent ID: 8356095

Claim:
A method of transferring context information from a message to a web server containing a context pool, the method comprising: receiving a message by the web server, wherein the web server is a SOAP server and the message is a SOAP request, and the web server further comprises a response component for receiving a SOAP request and a request component for sending a SOAP request; obtaining context information from said message; generating a unique identifier according to a thread for processing the message; associating the context information with the generated unique identifier, wherein it is judged whether the context information is valid after obtaining context information and in response to the context information being valid, storing the context information and the associated unique identifier; storing the context information and the associated unique identifier in the context pool of the web server correlatively, wherein the storing the context information and the associated unique identifier is performed in the response component; generating an identifier according to a thread that is executed currently in the web server if the web server is required to obtain the context information; extracting the context information for which the associated unique identifier is matched with the generated identifier from the context pool, wherein the extracting the context information for which the associated unique identifier is matched with the generated identifier is performed in the request component; checking the context pool periodically for inactive threads by determining whether each thread associated with each piece of stored context information in the context pool exists; and removing from the context pool each piece of the stored context information where no associated threads exist.