0
任何人都可以告诉我如何调用SharePoint Web服务GetListItems
。我在调用此方法如何使用目标C调用Sharepoint Web服务GetListItems C
的代码为我的HTTP头请求收到错误消息“403禁止”是:
[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];
我对调用GetListItems
方法XML结构为:
<listName>listName</listName><viewName></viewName>< Query />< ViewFields />< rowLimit>< /rowLimit>< QueryOptions>< IncludeAttachmentUrls>TRUE< /IncludeAttachmentUrls>< /QueryOptions>< webID>< /webID>< /GetListItems>< /soap:Body>< /soap:Envelope>
有人可以告诉我我错了什么或者我需要做什么吗?
在此先感谢。
嗨, 你怎么会解决这个问题? – 2011-05-16 16:14:13