4.1.5 GetScopeInfo

SharePoint

To retrieve information about a search scope, the protocol client might send the message:

 <s:Envelope 
   xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
   xmlns:a="http://www.w3.org/2005/08/addressing" 
   xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
   <s:Header>
     <a:Action s:mustUnderstand="1">
       http://tempuri.org/ISearchSiteAdministrationServiceApplication/GetScopeInfo
     </a:Action>
     <a:MessageID>
       urn:uuid:5e896357-6d8a-47d2-97eb-dc07c4f01804
     </a:MessageID>
     <a:ReplyTo>
       <a:Address>
         http://www.w3.org/2005/08/addressing/anonymous
       </a:Address>
     </a:ReplyTo>
     <ServiceContext 
       xmlns="http://schemas.microsoft.com/sharepoint/servicecontext" 
       xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
       <correlationId>
         15df273c-1708-41f4-a6ed-0b167cc82e07
       </correlationId>
       <language>en-US</language>
       <region>en-US</region>
       <siteSubscriptionId>
         00000000-0000-0000-0000-000000000000
       </siteSubscriptionId>
     </ServiceContext>
     <a:To s:mustUnderstand="1" u:Id="_1">
       http://example.com:32843/dc46e19968e743728529b721db8c8c60/SearchService.svc
     </a:To>
   </s:Header>
   <s:Body>
     <GetScopeInfo xmlns="http://tempuri.org/">
       <scopeId>1</scopeId>
     </GetScopeInfo>
   </s:Body>
 </s:Envelope>

The protocol server might return a message such as this:

 <s:Envelope 
   xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
   xmlns:a="http://www.w3.org/2005/08/addressing" 
   xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
   <s:Header>
     <a:Action s:mustUnderstand="1">
       http://tempuri.org/ISearchSiteAdministrationServiceApplication/GetScopeInfoResponse
     </a:Action>
     <ActivityId 
       CorrelationId="fe2eb364-b797-444a-9ef7-fc9d2fd5cad3" 
       xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">
       a3f25317-d6fa-4be6-bbbf-b7cef40c2bad
     </ActivityId>
     <a:RelatesTo>
       urn:uuid:5e896357-6d8a-47d2-97eb-dc07c4f01804
     </a:RelatesTo>
   </s:Header>
   <s:Body>
     <GetScopeInfoResponse xmlns="http://tempuri.org/">
       <GetScopeInfoResult 
         xmlns:b="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration" 
         xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <b:AlternateResultsPage i:nil="true"></b:AlternateResultsPage>
         <b:CompilationState>Compiled</b:CompilationState>
         <b:CompilationType>AlwaysCompile</b:CompilationType>
         <b:ConsumerName>496f265c-4758-4ac5-b14d-d02dfa131a64</b:ConsumerName>
         <b:Description>Search for everything available for searching</b:Description>
         <b:DisplayInAdminUI>true</b:DisplayInAdminUI>
         <b:Filter i:nil="true"></b:Filter>
         <b:Id>1</b:Id>
         <b:IsDeleted>false</b:IsDeleted>
         <b:LastCompilationTime>2010-01-08T18:00:56.317</b:LastCompilationTime>
         <b:LastModifiedBy>username</b:LastModifiedBy>
         <b:LastModifiedTime>2010-01-08T17:53:11.157</b:LastModifiedTime>
         <b:Name>All Sites</b:Name>
         <b:SiteUrl i:nil="true"></b:SiteUrl>
       </GetScopeInfoResult>
     </GetScopeInfoResponse>
   </s:Body>
 </s:Envelope>
Show: