On the soft emission mechanism in X-ray pulsars