0
我使用Sharepoint的Lists-WS來檢索有關DocumentLibraries和這些庫中文件的信息。現在我想上傳新文件。如何使用PHP實現上傳?直到現在我使用Thybag SharePointAPI獲取信息(Link)。通過使用PHP(NTLM和ThyBag)通過WS將文件上傳到Sharepoint Library
(所述SharepointServer使用NTLM認證功能)
THX預先!!
UPDATE:
我想從SharePoint調用Copy.asmx WS。要做到這一點,我用下面幾行:
$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);
}
但我甚至不得到任何迴應($結果== NULL).....