perlquestion
tomva
Hello all-
<br/>
<br/>
I have been trying to talk to a sharepoint server, starting with this post: <a href="http://www.squish.net/log/2008/10/11/perl-sharepoint/">squish.net link</a>
<br/>
<br/>
The server is running SharePoint 2010, and I'm accessing via https.
<br/>
<br/>
I've been able to connect and make SOAP requests, and I am able to successfully invoke GetListCollection(), for instance.
<br/>
<br/>
However, <b>all of my attempts to call GetListItems() fail with a "Value does not fall within the expected range." exception from the server.</b>
<br/>
<br/>
I'm guessing the documentation online is for older versions of SharePoint, so there is some additional field I need to supply to my GetListItems() call. But the errors are pretty opaque, and I've been unable to find, guess, or steal the correct field from MSDN or other searches.
<br/>
<br/>
Has anyone run into this or have any suggestions?
<br/>
<br/>
Here is a sample request as dumped by SOAP::Lite: (the listName is the list ID as returned by GetListCollection).
<br/>
<code>
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<namesp2:GetListItems xmlns:namesp2="http://schemas.microsoft.com/sharepoint/soap/">
<listName xsi:type="xsd:string">{C3E2B6FC-8847-49F7-8164-E98FDE408FC0}</listName>
</namesp2:GetListItems>
</soap:Body>
</soap:Envelope>
</code>
<br/>
<br/>
And the response:
<br/>
<code>
<?xml version="1.0" encoding="utf-8"?>
<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/">Value does not fall within the expected range.</errorstring>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
</code>
<br/>
<br/>
Thanks for any help or suggestions!
<br/>
<br/>
-Thomas