ajax and soap logic complete