title: calling a webservice from scheduled task agent class in windows phone 7.1
body: <p>Can we call a webservice from the scheduled periodic task class firstly, if yes,
  Am trying to call a webservice method with parameters in scheduled periodic task agent class in windows phone 7.1. am getting a null reference exception while calling the method though am passing the expected values to the parameters for the webmethod.
  am retrieving the id from the isolated storage.</p>
  
  <p>the following is my code.</p>
  
  <pre><code> protected override void OnInvoke(ScheduledTask task)
      {
          if (task is PeriodicTask)
          {
              string Name = IName;
              string Desc = IDesc;
              updateinfo(Name, Desc);
          }
      }
  
  
  
  public void updateinfo(string name, string desc)
      {
          AppSettings tmpSettings = Tr.AppSettings.Load();
          id = tmpSettings.myString;
          if (name == "" &amp;&amp; desc == "")
          {
              name = "No Data";
              desc = "No Data";
          }
          tservice.UpdateLogAsync(id, name,desc);
          tservice.UpdateLogCompleted += new EventHandler&lt;STservice.UpdateLogCompletedEventArgs&gt;(t_UpdateLogCompleted);
      }
  </code></pre>
  
  <p>Someone please help me resolve the above issue.</p>