Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于iphone开发的GetListItems Web服务的Soap请求_Iphone_Sharepoint_Soap - Fatal编程技术网

用于iphone开发的GetListItems Web服务的Soap请求

用于iphone开发的GetListItems Web服务的Soap请求,iphone,sharepoint,soap,Iphone,Sharepoint,Soap,我正在为sharePoint的soap请求开发一个iphone应用程序,即GetListItems web服务。但是我遇到了不同类型的异常,我对iphone和soap请求都很陌生 错误是:-Guid应包含32位数字和4个破折号xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 我的xml代码是:- NSString *soapMessage = [NSString stringWithFormat: @"<?xml v

我正在为sharePoint的soap请求开发一个iphone应用程序,即GetListItems web服务。但是我遇到了不同类型的异常,我对iphone和soap请求都很陌生

错误是:-Guid应包含32位数字和4个破折号xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

我的xml代码是:-

NSString *soapMessage = [NSString stringWithFormat:
                         @"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
                         "<soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"> \n"
                         "<soap:Body> \n"
                         "<GetListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\">\n"
                         "<listName>@""</listName>\n"
                         "<viewName>string</viewName>\n"
                         "<query></query>\n"
                         "<viewFields></viewFields>\n"
                         "<rowLimit></rowLimit>\n"
                         "<queryOptions></queryOptions>\n"
                         "<webID></webID>\n"
                         "</GetListItems>\n"
                         "</soap:Body> \n"
                         "</soap:Envelope>"];

我找不到问题出在哪里,请帮助我。

Guid应该包含32位,带4个破折号xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx。通常表示listName节点中的值存在问题。这将获取要查询的列表的显示名称或不带括号的GUID


你粘贴的是你现在发送的实际请求吗?原因将爆炸。

listName元素应该是列表的GUID “{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}” 确保包含单引号。
希望这能有所帮助

在我的例子中,我们的SharePoint实例有两个子站点。我没有通过URL查询正确的站点。我可以通过错误站点上的列表GUID进行查询,但当我更新URL以指向正确的子站点时,它发现列表没有问题。

您好,感谢您的快速回复。是的,我将viewName设置为32位数字。。但我发送的是空白的listName。我需要为listname输入32位数字吗?如果您有Iphone应用程序开发的示例应用程序soap需求,请发送给我。谢谢你,卡马尔布