hello everybody.
I am trying to add webparts to a webpartpage via SOAP / REST.
Therefore I am using the SOAP Method AddWebPartToZone (from webpartpages.asmx Web Service).
My Webpartpage has two WebPartZones: "Zone 1" and "Zone 2".
But no matter which zone I use for zoneId in the request body the web part is always added to "Zone 2".
Do you have any idea why this is happening?
This is how the body of my SOAP request looks like:
<?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/MyList</property><property name="MissingAssembly" type="string">Cannot import this Web Part.</property></properties></data></webPart></webParts></webPartXml><storage>Shared</storage><zoneId>Zone 1</zoneId><zoneIndex>1</zoneIndex></AddWebPartToZone></soap12:Body></soap12:Envelope>