117. Witnesses, advocates, stenographers, stenotypists and persons recording and transcribing the depositions have a recourse for their taxed costs against the party who retains their services and, if the adverse party is condemned to pay the costs, against the latter party as well. The former party has a right of subrogation against the latter.