title: "-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data" not called
body: <p>Have a look to this code snippet:-</p>
  
  <pre><code>-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
  {               
      [webData setLength: 0];           
  }
  
  
  
  -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
  
  {
      NSLog(@"Recieving Data...");
      [webData appendData:data];
  
  }
  
  
  
  -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
  {
      NSLog(@"ERROR with theConenction");
      [connection release];
      [webData release];
  }
  
  -(void)connectionDidFinishLoading:(NSURLConnection *)connection
  {
      NSLog(@"DONE. Received Bytes: %d", [webData length]);
      NSLog(theXML);
  
  
  }   
  </code></pre>
  
  <p>I am calling a SOAP web service.There are no errors or warnings displayed in my code.
  When I hit the web service through safari it works fine. But the problem arises when I try
  hit it through my codes.
  Everything works fine but the <code>connection:didRecieveData</code> does not gets called.
  Thus, I get no data in the <code>webData</code> variable. This <code>webData</code> is a <code>NSMutableData</code> object.
  The problem seems to be silly but any one with any answers ....</p>
  
  <p>Thank You All.</p>