Capillary Discharge Plasma as a Source of Soft X-ray Radiation(Simulation and Theory)