You have what's called a "Pal Pad". There you have to register people's names and enter the wifi room.(Lady in Pokemon Center. She's upstairs in the middle). Enter the room and select the name of the person on the list when the log on also. There you can trade pokemon you have in your party.