Three leading judges are expected to deliver a ruling on Thursday in the case of Canon Jeremy Pemberton, who had his permission to officiate revoked after he married Laurence Cunnington in April 2014.
Canon Jeremy Pemberton, a Church of England (C of E) priest for more than 30 years, was also denied a licence to officiate in the diocese of Southwell and Nottingham - which left him unable to take up a job offer at the King's Mill Hospital in Nottinghamshire.
He lost an employment tribunal against the Rt Rev Richard Inwood, former acting Bishop of Southwell and Nottingham, and his claims of discrimination and harassment were also rejected by the employment appeal tribunal.
But he renewed his fight at London's Court of Appeal, where his lawyers argued the earlier rulings should be overturned.
During a two-day hearing in January, his legal team said the bishop's decisions were wrong, because the C of E has no fixed rule on same-sex marriage among members of the clergy.
His barrister Sean Jones QC also said C of E clergy members in civil partnerships were allowed to officiate and that those were "effectively indistinguishable" from same-sex marriages.
He added: "There isn't a doctrine that says if you have entered into a same-sex civil marriage, then you cannot officiate."
Lawyers for the former bishop said it was accepted Canon Pemberton felt "humiliated" by the decisions, but the tribunal was right to find there was no "homophobic harassment".
Thomas Linden QC told the court the decisions were taken on the grounds Canon Pemberton had "publicly flouted the doctrines of the Church on marriage, whereas his duty as a priest was to exemplify them".
He added: "As a result, he remained a priest and he was perfectly entitled to remain a member of the Church, to continue to participate in the life of the Church, and indeed to continue to argue for a change in the Church's position on same-sex marriage.
"But he did not have permission to officiate in the diocese of Southwell and Nottingham."
Stay up to date with the latest news stories from a Christian perspective. Sign up to our daily newsletter and receive more stories like this straight to your inbox every morning.