Author: kwright
Date: Tue Sep 17 21:00:32 2013
New Revision: 1524223
URL: http://svn.apache.org/r1524223
Log:
Actually add the nodes to the document
Modified:
manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-772/webservice/MCPermissions.cs
Modified:
manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-772/webservice/MCPermissions.cs
URL:
http://svn.apache.org/viewvc/manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-772/webservice/MCPermissions.cs?rev=1524223&r1=1524222&r2=1524223&view=diff
==============================================================================
---
manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-772/webservice/MCPermissions.cs
(original)
+++
manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-772/webservice/MCPermissions.cs
Tue Sep 17 21:00:32 2013
@@ -171,16 +171,21 @@ namespace MetaCarta.SharePoint.SoapServe
XmlDocument doc = new XmlDocument();
retVal = doc.CreateElement("GetSites",
"http://schemas.microsoft.com/sharepoint/soap/directory/");
- XmlNode getListItemsNode =
doc.CreateElement("GetSitesResponse");
+ XmlNode getSitesNode =
doc.CreateElement("GetSitesResponse");
foreach (SPWeb oWeb in oWebsiteRoot.Webs)
{
XmlNode resultNode =
doc.CreateElement("GetSitesResult");
- XmlAttribute siteAttribute =
doc.CreateAttribute("Site");
- siteAttribute.Value = oWeb.Url;
- resultNode.Attributes.Append(siteAttribute);
- getListItemsNode.AppendChild(resultNode);
+ XmlAttribute urlAttribute =
doc.CreateAttribute("URL");
+ urlAttribute.Value = oWeb.Url;
+ resultNode.Attributes.Append(urlAttribute);
+ XmlAttribute nameAttribute =
doc.CreateAttribute("Name");
+ nameAttribute.Value = oWeb.Title;
+ resultNode.Attributes.Append(nameAttribute);
+ getSitesNode.AppendChild(resultNode);
}
+
+ retVal.AppendChild(getSitesNode);
}
}
}