Send GPS weft from Arduino GSM Shield

Choose which serial port you are gong to use on the mega (e.g. Serial1) for this device and connect the device to the appropriate pins.
Remove this statement: SoftwareSerial ss(RXPin, TXPin);
change all occurrences of ss. to Serial1. (if you choose to use Serial1)

If it doesn't work, say why and post your new code.