web services - Upload Files to Sharepoint Library through WS with PHP (NTLM & ThyBag) -
I use WS-WS from SharePoint to obtain information about document libraries and files in these libraries. Now I want to upload new file. How do I upload with PHP? << p>
To update:
(to date) P>
I want to contact Copy. To do this, I use the following lines:
$ sourceurl = 'http: // null'; $ Params = '& lt; CopyIntoItems xmlns = "http://schemas.microsoft.com/sharepoint/soap/" & gt; & Lt; SourceUrl & gt; & Lt '$ sourceurl ..'; / SourceUrl & gt; & Lt; Destination & gt; '. $ Destination URL '& lt; / Destination & gt; & Lt; Stream & gt; '. $ Stream '& lt; / Stream & gt; & Lt; / CopyIntoItems & gt; '; $ Xmlvar = New \ Sopor ($ params, XSD_ANYXML); // Try going to try {$ result = $ this-> Soap Client-> CopyIntoItems ($ xmlvar) - & gt; CopyIntoItemsResponse- & gt; CopyIntoItemsResult; } Hold (\ SoapFault $ mistake) {$ this-> OnError ($ mistake); } But I did not get any response ($ result == tap) .....
You can use the method. You can get a detailed conversation about using the CopyIntoItems service to upload documents.
Comments
Post a Comment