How to create custom listener for web service response

i want to create custom listener for listen web service response.
take a example
i send msg to server.-- immediately return msg(transaction accepted). after some time(might be 1 miniute) server send another msg (your transaction done)

how to listen last response.