Share via


4 Protocol Examples

A protocol client might construct the following WSDL message to retrieve a list of URLs.

 <?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>
     <GetLinks xmlns="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" />
   </soap:Body>
 </soap:Envelope>

The protocol server returns the list of URLs in the form of the following WSDL message:

 <?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>
     <GetLinksResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService">
       <GetLinksResult>
         <ServerLink>
           <Title>My Site</Title>
           <Url>http://contoso:80/personal/bob/</Url>
           <LinkType>2</LinkType>
           <IsMember>true</IsMember>
           <IsPublished>true</IsPublished>
         </ServerLink>
         <ServerLink>
           <Title>Profile Site</Title>
           <Url>http://contoso:80/mysite/Person.aspx?user=</Url>
           <LinkType>72057594037927936</LinkType>
           <IsMember>false</IsMember>
           <IsPublished>true</IsPublished>
         </ServerLink>
         <ServerLink>
           <Title>Shared Documents</Title>
           <Url>http://contoso:80/personal/bob/Shared%20Documents</Url>
           <LinkType>144115188075855872</LinkType>
           <IsMember>false</IsMember>
           <IsPublished>true</IsPublished>
         </ServerLink>
         <ServerLink>
           <Title>Contoso Document Library</Title>
           <Url>http://contoso:80/Documents</Url>
           <LinkType>1152921504640401408</LinkType>
           <IsMember>false</IsMember>
           <IsPublished>false</IsPublished>
         </ServerLink>
       </GetLinksResult>
     </GetLinksResponse>
   </soap:Body>
 </soap:Envelope>