The ChemSpider SOAP APIs are now retired, which means that the look-up based upon ChemSpider can no-longer be used. There is a new replacement API which is described at https://developer.rsc.org, which could be used to provide the same functionality.