Further info here:
http://www.irishrail.ie/your_ticket/...opean_rail.asp
and here:
http://www.stenaline.ie/ferry/rail-and-sail/fishguard/
Note that the Iarnród Éireann site quotes a Wexford-Rosslare-Fishguard-Cardiff through fare.
Hope the foregoing is of help.