Take a copy of SharePoint Manager , it can show you a bunch of interesting information.
you need a Name field (it includes ".aspx"). The title field is not related to the wiki (empty), pages are indexed by their name.
- update -
Using copy.asmx allows you to load a new document. A template page is a page that was previously loaded (it does not store any information equivalent to a layout page).
private byte[] GetTemplatePage() { FileStream fs = new FileStream("templatePage.aspx", FileMode.Open); byte[] fileContents = new byte[(int)fs.Length]; fs.Read(fileContents, 0, (int)fs.Length); fs.Close(); return fileContents; } private void UploadDoc(string pageName) { byte[] wikiBytes = GetTemplatePage(); string dest = "http://[website]/wiki/Wiki%20Pages/" + pageName + ".aspx"; string[] destinationUrlArray = new string[] { dest }; IntranetCopy.Copy copyService = new IntranetCopy.Copy(); copyService.UseDefaultCredentials = true; copyService.Url = "http://[website]/wiki/_vti_bin/copy.asmx"; IntranetCopy.FieldInformation fieldInfo = new IntranetCopy.FieldInformation(); IntranetCopy.FieldInformation[] fields = { fieldInfo }; IntranetCopy.CopyResult[] resultsArray; copyService.Timeout = 600000; uint documentId = copyService.CopyIntoItems(dest, destinationUrlArray, fields, wikiBytes, out resultsArray); }
You can then call lists.asmx to update wikifield. Note. I do not understand how to rename a document after downloading it using webservices.
source share