The soft X-ray/NLR connection: a single photoionized medium?