Inverse problem for the half-off-shellTmatrix