Xml SiteData.GetSite未返回URL详细信息
我使用以下web服务获取SharePoint服务器中的站点 Web服务:SiteData 网上参考:http:///_vti_bin/SiteData.asmx 根据定义,它应返回如下响应:Xml SiteData.GetSite未返回URL详细信息,xml,web-services,sharepoint,Xml,Web Services,Sharepoint,我使用以下web服务获取SharePoint服务器中的站点 Web服务:SiteData 网上参考:http:///_vti_bin/SiteData.asmx 根据定义,它应返回如下响应: HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="ht
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetSiteResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetSiteResult>unsignedInt</GetSiteResult>
<sSiteMetadata>
<LastModified>dateTime</LastModified>
<LastModifiedForceRecrawl>dateTime</LastModifiedForceRecrawl>
<SmallSite>boolean</SmallSite>
<PortalUrl>string</PortalUrl>
<UserProfileGUID>string</UserProfileGUID>
<ValidSecurityInfo>boolean</ValidSecurityInfo>
</sSiteMetadata>
<vWebs>
<_sWebWithTime>
<Url>string</Url>
<LastModified>dateTime</LastModified>
</_sWebWithTime>
<_sWebWithTime>
<Url>string</Url>
<LastModified>dateTime</LastModified>
</_sWebWithTime>
</vWebs>
<strUsers>string</strUsers>
<strGroups>string</strGroups>
<vGroups>
<string>string</string>
<string>string</string>
</vGroups>
</GetSiteResponse>
</soap:Body>
</soap:Envelope>
但我得到了以下类型的回应
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetSiteResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetSiteResult>unsignedInt</GetSiteResult>
<sSiteMetadata>
<LastModified>dateTime</LastModified>
<LastModifiedForceRecrawl>dateTime</LastModifiedForceRecrawl>
<SmallSite>boolean</SmallSite>
<PortalUrl />
<ValidSecurityInfo>boolean</ValidSecurityInfo>
</sSiteMetadata>
<strGroups>string</strGroups>
<vGroups>
<string>string</string>
<string>string</string>
</vGroups>
</GetSiteResponse>
</soap:Body>
</soap:Envelope>
在这一点上,以下回应缺失
<vWebs>
<_sWebWithTime>
<Url>string</Url>
<LastModified>dateTime</LastModified>
</_sWebWithTime>
<_sWebWithTime>
<Url>string</Url>
<LastModified>dateTime</LastModified>
</_sWebWithTime>
</vWebs>
通过上面的xml,我提取url的。由于没有返回上述xml,可用站点显示为不存在
我做错了什么?如何在我的回复中获得vWebs标签
编辑:
我们的SharePoint服务器是另一台电脑。我是以用户身份添加的。当我在农场管理员组时,这种情况就会发生。如果从服务器场管理员处删除了我的帐户,则返回vWebs。所有添加到此服务器场体验的用户。一旦它们被移除,这就可以了
<vWebs>
<_sWebWithTime>
<Url>string</Url>
<LastModified>dateTime</LastModified>
</_sWebWithTime>
<_sWebWithTime>
<Url>string</Url>
<LastModified>dateTime</LastModified>
</_sWebWithTime>
</vWebs>