It was the first time since the 16th century that the heads of the two Christian churches have held a joint prayer service.