4.4.1.1.2 Response

The protocol server returns the following response message for the first user profile:

 <?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>
     <GetUserProfileByIndexResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">
       <GetUserProfileByIndexResult>
         <NextValue>1</NextValue>
         <UserProfile>
           <PropertyData>
             <IsPrivacyChanged>False</IsPrivacyChanged>
             <IsValueChanged>False</IsValueChanged>
             <Name>Name</Name>
             <Privacy>NotSet</Privacy>
             <Values>
               <ValueData>
                 <Value xsi:type="xsd:string">Martin Weber</Value>
               </ValueData>
             </Values>
           </PropertyData>
           <PropertyData>
             <IsPrivacyChanged>False</IsPrivacyChanged>
             <IsValueChanged>False</IsValueChanged>
             <Name>SomeOtherProperty</Name>
             <Privacy>NotSet</Privacy>
             <Values>
               <ValueData>
                 <Value xsi:type="xsd:string">SomeOtherValue</Value>
               </ValueData>
             </Values>
           </PropertyData>
         </UserProfile>
         <Colleagues>
           <ContactData>
             <AccountName>Contoso\Hicks</AccountName>
             <Privacy>NotSet</Privacy>
             <Name>Cassie Hicks</Name>
             <IsInWorkGroup>false</IsInWorkGroup>
             <Email>Kim@contoso.com</Email>
             <Title>Developer</Title>
             <Url></Url>
             <UserProfileID>guid</UserProfileID>
             <ID></ID>
           </ContactData>
           <ContactData>
             <AccountName>Contoso\Glen</AccountName>
             <Privacy>NotSet</Privacy>
             <Name>John Glen</Name>
             <IsInWorkGroup>false</IsInWorkGroup>
             <Email>Glen@contoso.com</Email>
             <Title>Tester</Title>
             <Url></Url>
             <UserProfileID>guid</UserProfileID>
             <ID></ID>
           </ContactData>
         </Colleagues>
         <QuickLinks>
           <QuickLinkData>
             <Name>A Person</Name>
             <Group>A group</Group>
             <Privacy>NotSet</Privacy>
             <Url>http://contoso/APerson</Url>
             <ID>1</ID>
           </QuickLinkData>
           <QuickLinkData>
             <Name>Another Person</Name>
             <Group>A group</Group>
             <Privacy>NotSet</Privacy>
             <Url>http://contoso/AnotherPerson</Url>
             <ID>2</ID>
           </QuickLinkData>
         </QuickLinks>
         <PinnedLinks>
           <PinnedLinkData>
             <Name>Some Person</Name>
             <Url>http://contoso/SomePerson</Url>
             <ID>3</ID>
           </PinnedLinkData>
           <PinnedLinkData>
             <Name>Some Other Person</Name>
             <Url>http://contoso/SomeOtherPerson</Url>
             <ID>4</ID>
           </PinnedLinkData>
         </PinnedLinks>
         <Memberships>
           <MembershipData>
             <Source>SharePointSite</Source>
             <MemberGroup>
               <SourceInternal>8BB1220F-DE8B-4771-AC3A-0551242CF2BD</SourceInternal>
               <SourceReference>string</SourceReference>
             </MemberGroup>
             <Group>A group</Group>
             <DisplayName>A group</DisplayName>
             <Privacy>NotSet</Privacy>
             <MailNickname>AGroup</MailNickname>
             <Url></Url>
             <ID>10</ID>
             <MemberGroupID>1</MemberGroupID>
           </MembershipData>
           <MembershipData>
             <Source>DistributionList</Source>
             <MemberGroup>
               <SourceInternal>A88B9DCB-5B82-41E4-8A19-17672F307B95</SourceInternal>
               <SourceReference>string</SourceReference>
             </MemberGroup>
             <Group>Another group</Group>
             <DisplayName>Another group</DisplayName>
             <Privacy>NotSet</Privacy>
             <MailNickname>AnotherGroup</MailNickname>
             <Url></Url>
             <ID>11</ID>
             <MemberGroupID>1</MemberGroupID>
           </MembershipData>
         </Memberships>
       </GetUserProfileByIndexResult>
     </GetUserProfileByIndexResponse>
   </soap:Body>
 </soap:Envelope>

Taking note of the NextValue field in the response shown previously, it is not -1; thus, the second response message returned is for the second user profile:

 <?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>
     <GetUserProfileByIndexResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">
       <GetUserProfileByIndexResult>
         <NextValue>3</NextValue>
         <UserProfile>
           <PropertyData>
             <IsPrivacyChanged>False</IsPrivacyChanged>
             <IsValueChanged>False</IsValueChanged>
             <Name>Name2</Name>
             <Privacy>NotSet</Privacy>
             <Values>
               <ValueData>
                 <Value xsi:type="xsd:string">Eva Corets</Value>
               </ValueData>
             </Values>
           </PropertyData>
           <PropertyData>
             <IsPrivacyChanged>False</IsPrivacyChanged>
             <IsValueChanged>False</IsValueChanged>
             <Name>PropA</Name>
             <Privacy>NotSet</Privacy>
             <Values>
               <ValueData>
                 <Value xsi:type="xsd:string">SomeOtherValue</Value>
               </ValueData>
             </Values>
           </PropertyData>
         </UserProfile>
         <Colleagues>
           <ContactData>
             <AccountName>Contoso\Counts</AccountName>
             <Privacy>NotSet</Privacy>
             <Name>Robin Counts</Name>
             <IsInWorkGroup>false</IsInWorkGroup>
             <Email>Counts@contoso.com</Email>
             <Title>Developer</Title>
             <Url></Url>
             <UserProfileID>2C3B6339-3352-47e3-8C91-1EF42934D68C</UserProfileID>
             <ID></ID>
           </ContactData>
         </Colleagues>
         <QuickLinks>
           <QuickLinkData>
             <Name>PersonABC</Name>
             <Group>GroupABC</Group>
             <Privacy>NotSet</Privacy>
             <Url>http://contoso/PersonABC</Url>
             <ID>1</ID>
           </QuickLinkData>
           <QuickLinkData>
             <Name>Another Person</Name>
             <Group>A group</Group>
             <Privacy>NotSet</Privacy>
             <Url>http://contoso/AnotherPerson</Url>
             <ID>2</ID>
           </QuickLinkData>
         </QuickLinks>
         <PinnedLinks>
           <PinnedLinkData>
             <Name>Person Somebody</Name>
             <Url>http://contoso/PersonSomebody</Url>
             <ID>3</ID>
           </PinnedLinkData>
           <PinnedLinkData>
             <Name>Some Other Person</Name>
             <Url>http://contoso/SomeOtherPerson</Url>
             <ID>4</ID>
           </PinnedLinkData>
         </PinnedLinks>
         <Memberships>
           <MembershipData>
             <Source>SharePointSite</Source>
             <MemberGroup>
               <SourceInternal>8BB1220F-DE8B-4771-AC3A-0551242CF2BD</SourceInternal>
               <SourceReference>string</SourceReference>
             </MemberGroup>
             <Group>A group</Group>
             <DisplayName>A group</DisplayName>
             <Privacy>NotSet</Privacy>
             <MailNickname>AGroup</MailNickname>
             <Url></Url>
             <ID>10</ID>
             <MemberGroupID>1</MemberGroupID>
           </MembershipData>
           <MembershipData>
             <Source>DistributionList</Source>
             <MemberGroup>
               <SourceInternal>A88B9DCB-5B82-41E4-8A19-17672F307B95</SourceInternal>
               <SourceReference>string</SourceReference>
             </MemberGroup>
             <Group>Another group</Group>
             <DisplayName>Another group</DisplayName>
             <Privacy>NotSet</Privacy>
             <MailNickname>AnotherGroup</MailNickname>
             <Url></Url>
             <ID>11</ID>
             <MemberGroupID>1</MemberGroupID>
           </MembershipData>
         </Memberships>
       </GetUserProfileByIndexResult>
     </GetUserProfileByIndexResponse>
   </soap:Body>
 </soap:Envelope>