Sites.asmx ExportWeb dataPath requirements?
-
15 mai 2012 19:49
I'm trying to export a site via the ExportWeb method in the Sites web service, but I keep getting an error that the destination could not be found. I've created a blank document library to which I have full control as the destination, but ExportWeb doesn't seem to want to do it. Is there something else I need to do to create & set a viable destination for this option?
Toate mesajele
-
15 mai 2012 21:02Moderator
Hi
Could you post how you call the service, including the input parameters that you use ? According to the spec, you have to provide a full path to the location you are saving the site to + the user invoking the service must have write permissions to that location , as you indicated
Regards Bjoern
Blog- Editat de Bjoern H RappMicrosoft Community Contributor, Moderator 15 mai 2012 21:06
-
16 mai 2012 13:47
At its simplest, I'm trying:
Sites.ExportWeb("testmigration", "http://<server1>/sites2/sitename",
"http://<server2>/sites/migration/testsite/TempLib", true, true, false, 1024);... where TempLib is an empty, un-templated document library to which I have full control. I'm connecting with credentials from System.Net.CredentialCache.DefaultCredentials. Just for the sake of trying I've also tried adding trailing slashes to the paths and adding a .cab extension to the file name.
-
16 mai 2012 17:35
You can read the thread below it points to the protocol documentation which should help. Also make sure you are logged in as the farm administrator.
Blog | SharePoint Field Notes Dev Tool | ClassMaster
- Marcat ca răspuns de Shimin Huang 27 mai 2012 12:26