China renewed calls for an end to the fighting in the Middle East while demonstrating its influence over Tehran.