We present experimental studies on the interaction of soft X-rays on gas-phase and solid-phase amino acids and nucleobases in an attempt to verify if these molecules (supposed to be formed in molecular clouds/protostellar clouds) can survive long enough to be observed or even to be found in meteorites. Measurements have been undertaken employing 150 eV photons under high vacuum conditions at the Brazilian Synchrotron Light Laboratory (LNLS). The produced ions from the gas-phase experiments (glycine, adenine and uracil) have been mass/charge analyzed by time-of-flight spectrometer. The analysis of solid phase samples (glycine, DL-proline, DL-valine, adenine and uracil) were performed by a Fourier transform infrared spectrometer coupled to the experimental chamber. Photodissociation cross sections and halflives were determined and extrapolated to astrophysical environments. The nucleobases photostability was up to two orders of magnitude higher than for the amino acids.