SowtwareSerial Xbee doesn´t receive and send

I tried to use a comunication with two Xbee, this fuction good with two arduino mega, but when i try to use arduino uno, with the same code, it doesn´t work, i changed the Serial, but it still no working

#include <SoftwareSerial.h>
#include<XBee.h>

SoftwareSerial SerialXbee(2,3);
//Recepcion de datos
XBee DeepXbee = XBee();
XBeeResponse response = XBeeResponse();
ZBRxResponse rx = ZBRxResponse();
ModemStatusResponse msr = ModemStatusResponse();

//Envio de datos

uint8_t payload[] = {'E'};
//int Lsb;
//int Msb;
XBeeAddress64 addr64 = XBeeAddress64(0x00000000, 0x0000FFFF);
//XBeeAddress64 addr64 = XBeeAddress64(Msb,Lsb);
ZBTxRequest zbTx = ZBTxRequest(addr64, payload, sizeof(payload));
ZBTxStatusResponse txStatus = ZBTxStatusResponse();

//variables

String Mensaje = "N";

void setup() {
Serial.begin(9600);
SerialXbee.begin(9600);
DeepXbee.setSerial(SerialXbee);
Serial.println("Configuraciones cargadas...");

}

this fuction good with two arduino mega, but when i try to use arduino uno, with the same code, it doesn´t work

Does that mean you used exactly the same code (as posted above) on the Arduino Mega2560 and it works as expected there? If you run it on an UNO, what problems do you get? I'm surprised that this code works at all because there is no loop() defined. Are you sure you're not hiding part of the code from us?