how to call the sharepoint web service GetListItems using objective C
<p>Can any one tell me how to call the SharePoint web service <code>GetListItems</code>. I am getting an error message "403 Forbidden" on calling this method</p>

<p>The code for my HTTP header request is:</p>

<pre><code>[theRequest setValue: cookie forHTTPHeaderField:@"Cookie"];
 [theRequest setHTTPShouldHandleCookies:YES];
 [theRequest addValue: @"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"]; 
 [theRequest addValue: saction forHTTPHeaderField:@"SOAPAction"]; 
 [theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"];
 [theRequest setHTTPMethod:@"POST"];
 [theRequest setHTTPBody: [soapMessage dataUsingEncoding:NSUTF8StringEncoding]]; 

 urlconnection = [NSURLConnection connectionWithRequest:theRequest delegate:self];
</code></pre>

<p>My XML structure for calling the <code>GetListItems</code> methods is:</p>

<pre><code>&lt; listName &gt;listName&lt; /listName &gt;&lt; viewName &gt;&lt; /viewName &gt;&lt; Query /&gt;&lt; ViewFields /&gt;&lt; rowLimit&gt;&lt; /rowLimit&gt;&lt; QueryOptions&gt;&lt; IncludeAttachmentUrls&gt;TRUE&lt; /IncludeAttachmentUrls&gt;&lt; /QueryOptions&gt;&lt; webID&gt;&lt; /webID&gt;&lt; /GetListItems&gt;&lt; /soap:Body&gt;&lt; /soap:Envelope&gt;
</code></pre>

<p>Can anybody tell me where I am wrong or what else I need to do?</p>

<p>Thanks in advance.</p>
