I'm calling GetListItems via spservices, and specifying the CAMLQuery field to be the following value:
<Where>
<Or>
<Contains><FieldRef Name='ows_Title'/><Value Type='Text'>my search term here</Value></Contains>
<Or>
<Contains><FieldRef Name='ows_LinkFilename'/><Value Type='Text'>my search term here</Value></Contains>
<Or>
<Contains><FieldRef Name='ows_Description1'/><Value Type='Text'>my search term here</Value></Contains>
<Or>
<Contains><FieldRef Name='ows_Team'/><Value Type='Text'>my search term here</Value></Contains>
<Or>
<Contains><FieldRef Name='ows_Editor'/><Value Type='Text'>my search term here</Value></Contains>
<Contains><FieldRef Name='ows_Keywords'/><Value Type='Text'>my search term here</Value></Contains>
</Or></Or></Or></Or></Or></Where>
What's coming back from SharePoint is this:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring>
<detail>
<errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element <Query> of parameter query is missing or invalid.</errorstring>
<errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000000</errorcode></detail></soap:Fault>
</soap:Body></soap:Envelope>
Clearly there's something wrong with this query, but what isn't specified by the error message. I know I'm using deeply nested Or clauses, is that a potential source of the problem, or what else about the CAMLQuery above would offend?
ORblocks? What is the right approach there? The tool seems to be having trouble getting through the auth layer of our sharepoint, so I'm wondering if there are general tips on what's going wrong here, other than "rewrite the query" – FrobberOfBits Apr 15 '15 at 17:33