From Middle Chinese 行在 or possibly 京師 (kˠiæŋ ʃˠiɪ)(Can this(+) etymology be sourced?) via one or more Romance languages (e.g. in the story of Marco Polo).
Quinsay