X-ray spectroscopic study of the ADC source X1822-371