Hello everybody.
I am trying to add list webparts to a webpartpage via SOAP/REST.
I am using the AddWebPart or AddWebPartToZone Methods of the webpartpages.asmx Webservice like so:
<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:Body><AddWebPartToZone xmlns="http://microsoft.com/sharepoint/webpartpages"><pageUrl>/sites/ideas4u/Pages/abcxyz.aspx</pageUrl><webPartXml>
<?xml version="1.0" encoding="utf-8" ?><webParts><webPart xmlns="http://schemas.microsoft.com/WebPart/v3"><metaData><type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /><importErrorMessage>Cannot import this Web Part.</importErrorMessage></metaData><data><properties><property name="ListUrl" type="string">/sites/ideas4u/Lists/myVeryList</property><property name="MissingAssembly" type="string">Cannot import this Web Part.</property></properties></data></webPart></webParts></webPartXml><storage>Shared</storage><zoneId>Zone 2</zoneId><zoneIndex>1</zoneIndex></AddWebPartToZone></soap12:Body></soap12:Envelope>
this works for Link-lists and Discussions, but I can't get it to work for Picture or Document libraries ...
ie. when myVeryList is a Picture Library or Document Library I get this error (which does not help at all):
What am I doing wrong?
I simply need a way to add a document/picture library webpart to a webpartpage via SOAP or REST requests. (since I am developing an iOS-App).