Hi,
The Cavanagh Family Tree, owned by "tmaccav", here on Ancestry, shows that marriage certificate.
The marriage certificate, is more reliable than the death certificate, as William himself has provided the information.
He states that he was 27 yo, in 1871, born in the West Indies, with the parents that you have just mentioned.
Mary