Here's how to encounter Arceus in the Diamond, Pearl, and Platinum era games:
1. Obtain the Azure Flute from a Pokémon event.
2. Head to any Poké Mart to receive the Azure Flute from the postman.
3. Go to Spear Pillar (follow the in-game steps if you're playing Diamond, Pearl, or Platinum).
4. Walk up and, when prompted, choose yes to use the Azure Flute.
5. Ascend the stairs until you reach Arceus.
6. Talk to Arceus to begin the battle.
7. Try to catch it—and remember to stock up on Ultra Balls beforehand!
A much simpler alternative is to trade for one, ideally with someone who has extras to spare.