Complex sentence: Henry entered the Imperial Customs Service in Shanghai in 1881 as Assistant Medical Officer and Customs Assistant and eventually retired with the rank of Mandarin.
Split into simpler sentences: Henry entered the Imperial Customs Service in Shanghai in 1881 as Assistant Medical Officer and Customs Assistant. Henry retired with the rank of Mandarin.