SocialDataService.GetAllTagTerms Method
SharePoint 2010
Retrieves all social tag terms, up to the specified maximum number.
Web service reference: http://Site/_vti_bin/SocialDataService.asmx
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetAllTagTerms", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)] public SocialTermDetail[] GetAllTagTerms( Nullable<int> maximumItemsToReturn )
Parameters
- maximumItemsToReturn
- Type: System.Nullable<Int32>
The maximum number of terms to return. If this value is not specified or is 0, this method returns up to 1000 social tag terms.
Return Value
Type: [SocialDataService Web service].SocialTermDetail[]An array that contains all social tag terms, up to the specified maximum number.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException |
maximumItemsToReturn is negative. |
SOAP response looks like...
<?xml version="1.0"?>
<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>
<GetAllTagTermsResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/SocialDataService">
<GetAllTagTermsResult>
<SocialTermDetail>
<Term>
<Id>69d2406f-f86e-49ce-8e9a-cc5a1b7f081f</Id>
<Name>I like it</Name>
</Term>
<Count>2</Count>
</SocialTermDetail>
<SocialTermDetail>
<Term>
<Id>6c934907-f5bd-4e78-b407-0ba69a84212c</Id>
<Name>Great Page</Name>
</Term>
<Count>1</Count>
</SocialTermDetail>
<SocialTermDetail>
<Term>
<Id>b906d231-37f6-4576-b323-269b394c349b</Id>
<Name>Nice work</Name>
</Term>
<Count>1</Count>
</SocialTermDetail>
<SocialTermDetail>
<Term>
<Id>6c99d9cc-3939-4028-8f9b-5d6b80dd3d74</Id>
<Name>B's Rock.</Name>
</Term>
<Count>1</Count>
</SocialTermDetail>
</GetAllTagTermsResult>
</GetAllTagTermsResponse>
</soap:Body>
</soap:Envelope>
<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>
<GetAllTagTermsResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/SocialDataService">
<GetAllTagTermsResult>
<SocialTermDetail>
<Term>
<Id>69d2406f-f86e-49ce-8e9a-cc5a1b7f081f</Id>
<Name>I like it</Name>
</Term>
<Count>2</Count>
</SocialTermDetail>
<SocialTermDetail>
<Term>
<Id>6c934907-f5bd-4e78-b407-0ba69a84212c</Id>
<Name>Great Page</Name>
</Term>
<Count>1</Count>
</SocialTermDetail>
<SocialTermDetail>
<Term>
<Id>b906d231-37f6-4576-b323-269b394c349b</Id>
<Name>Nice work</Name>
</Term>
<Count>1</Count>
</SocialTermDetail>
<SocialTermDetail>
<Term>
<Id>6c99d9cc-3939-4028-8f9b-5d6b80dd3d74</Id>
<Name>B's Rock.</Name>
</Term>
<Count>1</Count>
</SocialTermDetail>
</GetAllTagTermsResult>
</GetAllTagTermsResponse>
</soap:Body>
</soap:Envelope>
- 10/29/2010
- sympmarc