The male needs to know the moves you want the hatched pokemon to know. In the case of Ditto, the non-Ditto pokemon needs to know the moves. But moves can only be passed on this way if they are TMs, HMs, or egg moves, and yes, this is the only way to get egg moves. As for Wobby, the only thing I can think of that you mean as "egg moves" in that case are the moves Wynaut knows, so as long as you breed Wynaut instead of a Wobbuffet, you will have access to all 7 of Wobbuffet's moves as you level up.