optimize rest api
fix soap interface
add rest class
remove public class
change soap config
refactor  unit tests