[…] look at these Christians closely, and you will abhor them. They are the worshippers of gold, not the followers of Alla. The poorest Mussulman has more hospitality than their Cadi; more charity than their Imans; more honesty than their Viziers.
Source: wiktionary
The pretended cadi, directing his discourse to the feigned Ali Cogia, asked him what he had to lay to the merchant's charge.
Source: wiktionary
The cadi is to give licenses for marriages, and the imam will perform the marriage ceremony accordingly.
Source: wiktionary