Well, you should use something like the Model View Controller architecture, which would allow you to achieve your goal of code reuse. Your rich client application would simply use the JSON/XML based API you create. This is a pretty common method of achieving the goal and I think it is pretty sound.
↧