0
sharepointapi.phpを使用して、共有ポイントリストに値を更新します。私はsharepointapi.phpによって生成された次の要求XML、取得:ソープ更新エラー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>
をそして私は、サーバーからこれを得た:
<?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>
注意。私は実際にリストからすべての行を取得することができます。
クエリが正しくフォーマットされていませんか?
ありがとうございます。
ですので、項目ID = 10の更新操作を行うための適切なフォーマットはどのようになっていますか? –