You just dig a trench and fill it with seawater, then float it over. The train just needs to go next to it to pull the boat.
'Just dig a trench and fill it with seawater'. Starts to sound an awful lot like a canal to me ... and ... why do you need a train to pull this?