Verwenden von sharepointapi.php, um einige Werte in eine Sharepoint-Liste zu aktualisieren. Ich erhalte die XML nächste Anforderung, erzeugt durch sharepointapi.php:Soap Update Fehler Sharepointapi.php
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/sharepoint/soap/">
<SOAP-ENV:Body>
<UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
\t <listName>CONTRACTS</listName>
\t \t <updates>
\t \t <Batch ListVersion="1" OnError="Continue">
\t \t \t <Method Cmd="Update" ID="1">
\t \t \t <Field Name="state">Awaiting F</Field>
<Field Name="ID">10</Field>
</Method>
\t \t </Batch>
\t </updates>
</UpdateListItems>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Und ich habe dies vom Server:
<?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/">Cannot access a closed Stream.
</errorstring>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Hinweis. Ich bin tatsächlich in der Lage, alle Reihen von der Liste zu erhalten.
Ist meine Abfrage falsch formatiert?
Vielen Dank.
also, wie ist das richtige Format, um die Update-Operation über Artikel-ID = 10 zu erreichen –
Die 10 ist auf diese Weise von der Bibliothek aufgebaut. Denkst du, ist ein Fehler? –