How do you catch other peoples Pokemon on diamond and pearl?

You can use a Action Reply codes to catch other trainers pokemon.