write dispatcher

use reflection to dispatch request . I wrote a small demo for testing