Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Microsoft.SharePoint.SoapServer.SoapServerException when check in file via Sharepoint WS API from Python code

$
0
0

Hello,

I develop a client for Sharepoint Server 2010 in Python.

Most of services works fine, but I get an error, when I post the following SOAP Envelope:

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CheckInFile xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<pageUrl>http://localhost:8796/Shared Documents/something.doc</pageUrl>
<comment>comment</comment>
<CheckinType>1</CheckinType>
</CheckInFile></soap12:Body></soap12:Envelope>

The response is:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</soap:Text></soap:Reason>

<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>

Does anyone knowwhatthe problem could be? What am I doing wrong?

Thanks for help!

PI


Viewing all articles
Browse latest Browse all 25064

Trending Articles