Wehrli studied law at the University of Zurich and received the degree of Doctor of Law there. The university, founded in 1833, was the first university in Zurich and became one of the principal centers of legal education in German-speaking Switzerland.
Wehrli speaks German, English and French.
Wehrli was admitted to the Zurich bar in 1957, which marked the start of professional practice after legal training. In Switzerland, lawyers are admitted by the authorities of each canton, so this admission tied the lawyer's qualification to practice in Zurich.
Wehrli later worked as a partner of Wehrli Wiget Lutz Briner, a firm based in Zurich. The partnership placed the lawyer in the private practice of the city's legal profession, where partners combined advisory work with representation of clients.
Wehrli was a member of the Zurich Bar Association and the Swiss Bar Association. These bodies organize the legal profession at the cantonal and national levels and represent the professional interests of practicing lawyers.