How do you copy a file into SharePoint using a WebService?
问题 I am writting a winforms c# 2.0 application that needs to put an XML file into a document library on SharePoint. I want to use a WebService instead of using the object model (no sharepoint.dll to reference here) I am currently using the http://webserver/site/_vti_bin/copy.asmx webservice. Here is some code: byte[] xmlByteArray; using (MemoryStream memoryStream = new MemoryStream()) { xmlDocument.Save(memoryStream); xmlBytes = memoryStream.ToArray(); } string[] destinationUrlArray = new string