The show of firepower in Beijing, to be attended by President Vladimir V. Putin, is designed to show that China is strong enough to resist pressure from foreign powers.