sharepoint - Soap update error Sharepointapi.php -
using sharepointapi.php in order update value sharepoint list. next request xml, generated 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/"> <listname>contracts</listname> <updates> <batch listversion="1" onerror="continue"> <method cmd="update" id="1"> <field name="state">awaiting f</field> <field name="id">10</field> </method> </batch> </updates> </updatelistitems> </soap-env:body> </soap-env:envelope> and got 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' thrown.</faultstring> <detail> <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">cannot access closed stream. </errorstring> </detail> </soap:fault> </soap:body> </soap:envelope> note. able rows list.
is query bad formatted?
thankyou.
looks trying update id of listitem. id generated sharepoint , cannot changed.
Comments
Post a Comment