Xi Jinping hosted the Palestinian president in Beijing and invited the Israeli prime minister for an official state visit. Benjamin Netanyahu accepted, and China was on track for a bigger role in the region.
Then came the Hamas attack against Israel, which has made Netanyahu's late October trip uncertain and put Beijing's Middle East approach to the test.
China's stated neutrality on the war has upset Israel, but Beijing may gain in the long run by forging closer ties with Arab countries, experts said.
«For a while at least, Beijing's Middle East policy is paralysed by the war,» said Shi Yinhong, professor of international relations at Beijing-based Renmin University of China.
«The US, which strongly supports Israel, is directly or indirectly involved.
Who is there to listen to China?»
That hasn't stopped China from trying to be heard.
Its Middle East envoy, Zhai Jun, talked to Palestinian and Egyptian officials by phone this past week, calling for an immediate cease-fire and humanitarian support for the Palestinian people.