To implement "Synchronous Listener Notification"

Help needed: I wanted to know, how to implement “Synchronous Listener Notification” for sample adapter. I am unable to update “reply” document or I must say there is no data at all there. Along with this, if I make some changes in reply parameters its not updating reply document of that notification.

thanks in advance.