[Background]Spalangia endius (Walker) is found to be one of the most important natural enemies, a pupal parasitoid of fruit flies. It is not known what role volatiles of fruits and hosts plays in host searching of S. endius.[Method] The orientation response of S. endius to the different treatments were studied with a "Y"-tube olfactometer.[Result] Adult female S. endius were significantly attracted by the fruits of guava (Psidium guajava L.) and carambola (Averrhoa carambola L.) one day after being infested with fruit fly larvae. Adult female S. endius were also significantly attracted by Bactrocera dorsalis (Hendel) pupae for 3 d old and B. cucurbitae (Coquillett) pupae for 4 d old. Female S. endius attracted the male S. endius significantly. However, the number of wasps between methyl eugenol and CK (air in a natural state) in the summary were not different.[Conclusion and significance] The host pupae and larvae-damaged fruits for 1 d old can release the material attracting S. endius, which may provide useful information of wasp release technology to control adults of fruit fly.