おめでとうございます (omedetō gozaimasu) means congratulations. Put the occasion first: ご結婚、おめでとうございます (go-kekkon, omedetō gozaimasu). Wish someone well with お幸せに (o-shiawase ni), be happy.
ますように (masu yō ni) makes a wish: 雨が降りませんように (ame ga furimasen yō ni), I hope it doesn't rain.