trying to convert soap to rest