Doesn't really matter how it's done in all reality. The fact remains that living sacrifices were given in order for the souls to be bound to them. Thus, this explains how they can summon them, that and they maintain their contracts even after death and revival due to the functioning of Edo Tensei.