Problem in integrating sim900 GSM module and s1315rl GPS module.

I own a GSM sim 900 module , a s1315rl GPS module and an arduino uno board. I have to extract the current position from GPS module and send it as a text message from the GSM module. I have been able to work GPS module and GSM module separately. But I am not able to integrate them. Can you help me with the code.