You can book the tickets online and use your passport numbers or can ask a friend in China do that for you and get the booking number, then all you need to do is collect the ticket from the windows.
My suggestion, take a taxi-van to hongqiao and go to the window to get the tickets.
Train around 3.5 - 4 hours after your flight landing time should be comfortable.