Inversion of an overdetermined boundary value problem - theory