Iranian foreign minister heads to China as Beijing seeks to mediate an end to the war.