Using .ajax to call web service

Using .ajax to call web service

I have a web service that returns an array. Code is below: Data variable comes back as blank. I was wonder is that because the method returns an object or am I doing something wrong on my end.
 

  1. $.ajax({
  2.       url: "http://FindStreetNameForAllLocalities",
  3.       data: "{ 'PartialStreetName': '" + request.term + "' }",
  4.       dataType: "json",
  5.       type: "POST",
  6.       contentType: "application/json; charset=utf-8",
  7.       success: function(data) {
  8.             if (data == null
  9.                   alert( "nothing."); 
  10.             }
  11.             else {
  12.                   alert(data)
  13.                   response(data.d)
  14.             }
  15.       }
  16. });