4.4 Find Social Data Tags

In this scenario, the current user wants to see a list of their social tags and other URIs that have the same social tags.

The protocol client starts by sending the following GetTagsOfUser request (section 3.1.4.29).

 <?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>
       <GetTagsOfUser xmlns="http://microsoft.com/webservices/SharePointPortalServer/SocialDataService">
          <userAccountName>USERNAME</userAccountName>
          <maximumItemsToReturn>100</maximumItemsToReturn>
          <startIndex>0</startIndex>
       </GetTagsOfUser>
    </soap:Body>
 </soap:Envelope>

The protocol server sends the following response.

 <?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>
       <GetTagsOfUserResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/SocialDataService">
          <GetTagsOfUserResult>
             <SocialTagDetail>
                <Url>http://server.example.com/page</Url>
                <Owner>USERNAME</Owner>
                <LastModifiedTime>2009-05-08T19:46:06.513</LastModifiedTime>
                <Term>
                   <Id>e62b6078-456f-4b4d-8497-c4037f54f9e8</Id>
                   <Name>for future reference</Name>
                </Term>
                <Title>Reference Page</Title>
                <IsPrivate>false</IsPrivate>
             </SocialTagDetail>
          </GetTagsOfUserResult>
       </GetTagsOfUserResponse>
    </soap:Body>
 </soap:Envelope>

The current user is interested in other URIs that have the same social tag. To retrieve these URIs, the protocol client sends the following GetTagUrls request (section 3.1.4.33).

 <?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>
       <GetTagUrls xmlns="http://microsoft.com/webservices/SharePointPortalServer/SocialDataService">
          <termID>e62b6078-456f-4b4d-8497-c4037f54f9e8</termID>
       </GetTagUrls>
    </soap:Body>
 </soap:Envelope>

The protocol server sends the following response.

 <?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>
       <GetTagUrlsResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/SocialDataService">
          <GetTagUrlsResult>
             <string>http://server.example.com/page</string>
             <string>http://server.example.com/page2</string>
          </GetTagUrlsResult>
       </GetTagUrlsResponse>
    </soap:Body>
 </soap:Envelope>