Beijing, seeking an advantage, casts itself as a global champion of free trade.