While consuming Webservices getting Network timeout error in iphone
<p>While consuming a SharePoint WebService in iphone app getting a network timeout error. 
I tried as follows.</p>

<p>1) Increased request timeout</p>

<p>2) Checked load of the data </p>

<p>3) verified the WS connectivity   </p>

<p>and Im using below code for authentication..</p>

<pre><code>// Called if the HTTP request receives an authentication challenge.
-(void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {
    if([challenge previousFailureCount] == 0) {
        NSURLCredential *newCredential;
        newCredential=[NSURLCredential credentialWithUser:@"atd\\kuldeep.shige" 
                                                 password:@"W@Rk" 
                                              persistence:NSURLCredentialPersistenceNone];
        [[challenge sender] useCredential:newCredential forAuthenticationChallenge:challenge];
    } else {
        NSDictionary* userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
                                     @"Could not authenticate this request",
                                     NSLocalizedDescriptionKey,nil];
        [[challenge sender] cancelAuthenticationChallenge:challenge];
        NSError* error = [NSError errorWithDomain:@"SoapRequest" 
                                             code:403 
                                         userInfo:userInfo];
       [self handleError:error];
    }
}
</code></pre>

<p>Please help me on this.
Thanks in advance!!</p>
