I did it with a wall kick. You just have to remember that the way you do wall kicks in SMS is you aim before you jump, unlike SM64, where you can adjust your trajectory mid-jump. So if you want to get where you're going, jump at the wall at an angle reverse of where you want to get to.