error in ajax method

error in ajax method

function call() {
    $.ajax({
        type: "POST",
        url: "http://192.168.1.12/service.asmx" + "/GetUserDetails",
        data: " {'deviceid': '123456', 'latitude': '45.23','longitude':'78.45'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",

        success: function () {
          onSuccess();
        }
      error:onError 
        
    });
        }
        function onSuccess() {
            document.write("data send");
      }
       function onError() {
         document.write("data not send");
             }


In the above code "success" method not execute..but data is insert into database..plz help me out what is wrong with this code...