title: Using ajax to call a web service when Windows Authentication turned on?
body: <p>I am trying to call a web service method from javascript:</p>
  
  <pre><code>function Search() {
  
          var context = new Object;
          context.Filter = "Test";
  
          SearchService.GetSearch(context, onSuccess, onFailed);
      }
  
      function onSuccess(result) {
          // userContext contains symbol passed into method
          var res = document.getElementById("resultsDiv");
          res.innerHTML = result;
      }
  
      function onFailed(result) {
          var res = document.getElementById("resultsDiv");
          res.innerHTML = result.get_message();
      }
  </code></pre>
  
  <p>Here's the web service signature:</p>
  
  <pre><code>[WebMethod]
      public SearchComboBoxItemData[] GetSearch(object context)
      {
  </code></pre>
  
  <p>When I use forms authentication and allow anonymous access to the web service, everything works fine.</p>
  
  <p>However, when I use windows authentication for the application, but only allow anonymous access to the webservice, calling the web service from javascript throws the following error:</p>
  
  <p>Invalid web service call, missing value for parameter: 'context'.</p>
  
  <p>Another thing I noticed is that it works fine both ways in Firefox.  I am seeing the error on IE7.</p>
  
  <p>Any thoughts on a possible solution?</p>