The X-ray response of InP