title: Calling a web service method from ASP.NET 1.1 using jQuery ajax, not returning any data.
body: <p>I have hosted a web service that gets called from an <strong>ASP.NET 1.1</strong> by jQuery ajax.</p>
  
  <p>Here is the code i am using to call the web service :</p>
  
  <pre><code>function OnTrimLevelChange() 
  {
      var $jDecode = jQuery.noConflict();
      var vin = $jDecode("input[id*=txtVIN]").val();
      var styleId = '';
      var paramList = '{"vin": "' + vin + '","styleID": "' + styleId + '"}';
      try
      {
  
          $jDecode.ajax({
              type: 'POST',
              contentType: 'application/json; charset=utf-8',
              url: 'http://192.168.10.10/VINDecoder/service.asmx/CallADSWebMethod',
              data: paramList,
              dataType: 'json',
              success: function(data) {
                  alert('I am here');
          },
              error: function(xml,textStatus,errorThrown) {
                  alert(xml.status + "||" + xml.responseText);
              }
          });
      }
      catch(er)
      {
      }
  }
  </code></pre>
  
  <p>=======================================================<br>
  The <strong>above</strong> always going to the error part.<br>
  <strong>Error: <br>xml.status = 0 <br>xml.responseText = null <br></strong></p>
  
  <p>Web method code is :</p>
  
  <pre><code>[WebMethod]
  public VINDescription CallADSWebMethod(string vin, string styleID)
  {
         VehicleDescription vehicleDescription = FetchVehicleInfo(vin, true, styleID);
  
          VINDescription vinDescription = new VINDescription();
  
          try
          {
              if (vehicleDescription != null)
              {
                  //Check if the response status of the call is successful or not.
                  if (vehicleDescription.responseStatus.description.Equals("Successful"))
                  {
                      vinDescription = AddToVINDescription(vehicleDescription);
  
                  }
              }
          }
          catch (NullReferenceException ex)
          {
          }
          return vinDescription;
  }
  </code></pre>
  
  <p>Note : The webservice is created in .Net 4.0 and site from which i am calling is in 1.1.
  They are hosted in different servers.</p>
  
  <p>PLease let me know what am i lacking here or what mistake i am doing her..</p>