Density profile of the ablating plasma produced by soft x-ray irradiation