In model MagentoTable I have my soapbundle array inside the else and not outside. I was getting an ajax error.