add  api
refactor soap unit tests
rewrite rest class