Here is a prototype of a wave generator in this video. Basically it sits in the ocean and the up and down motions of the wave generate power through a flywheel. The guy shows the inside and then takes it to ocean and tests it in the video.
Link
Source: YouTube