How do you trade Pokemon in Pokemon Black?

To trade pokemon from Diamond, Pearl and Platinum i believe you have to defeat the pokemon league first in Pokemon Black/White