There is no cannon to unlock in World 4 of New Super Mario Bros. Wii. Each world has unique power-ups, but World 4 (Jungle) does not feature a cannon mechanic.
If you describe the specific level or visual (e.g., "red pipe shooting me across map"), I can pinpoint the exact secret exit or mechanic you're recalling!