final working version. rails app is connection to webservices properly.