PHP-SharePoint-Lists-API
PHP-SharePoint-Lists-API copied to clipboard
CopyIntoItems.aspx
I use the api with great success (NTLM auth), thx for that. But now I wanted to use the CopyIntoItems WS to upload files into a SP Library and tried it as follows:
$sourceurl = 'http://null';
$params = '
<CopyIntoItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<SourceUrl>'.$sourceurl.'</SourceUrl>
<DestinationUrls>' . $destinationURLs . '</DestinationUrls>
<Stream>' . $stream . '</Stream>
</CopyIntoItems>
';
$xmlvar = new \SoapVar($params, XSD_ANYXML);
// Attempt to run operation
try {
$result = $this->soapClient->CopyIntoItems($xmlvar)->CopyIntoItemsResponse->CopyIntoItemsResult;
} catch (\SoapFault $fault) {
$this->onError($fault);
}
I get no SoapError, but nothing happens, the result is NULL, could anyone help? THX in advance
Please see: https://github.com/thybag/PHP-SharePoint-Lists-API/issues/85#issuecomment-159725580