PHP-SharePoint-Lists-API icon indicating copy to clipboard operation
PHP-SharePoint-Lists-API copied to clipboard

CopyIntoItems.aspx

Open jmcclane opened this issue 11 years ago • 1 comments

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

jmcclane avatar Oct 13 '14 18:10 jmcclane

Please see: https://github.com/thybag/PHP-SharePoint-Lists-API/issues/85#issuecomment-159725580

thybag avatar Nov 25 '15 20:11 thybag