XBEE Serial command

It looks like this line:

SoftwareSerial Serial(1, 2); //Arudino RX, TX

is telling SoftwareSerial to use the hardware TX line as the software RX line. I suggest using different pins, like 2 and 3, and not naming the SoftwareSerial object "Serial" (the example sketches call it "mySerial").