4.1 GetCurrentUserInfo
This example describes how GetCurrentUserInfo method works. To get the current user information, the protocol client sends the following message to the protocol server:
-
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetCurrentUserInfo xmlns="http://schemas.microsoft.com/office/Access/Server/WebServices/AccessServer/"> </GetCurrentUserInfo> </soap:Body> </soap:Envelope>
The protocol server then responds with the following:
-
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetCurrentUserInfoResponse xmlns="http://schemas.microsoft.com/office/Access/Server/WebServices/AccessServer/"> <GetCurrentUserInfoResult> <GetCurrentUserInfo xmlns="http://schemas.microsoft.com/office/Access/Server/WebServices/AccessServer/"> <User ID="25" Sid="S-1-5-21-2127521184-1604012920-1887927527-4150143" Name="Andrew Cencini" LoginName="Northwind\andrew" Email="andrew@northwindtraders.com" Notes="" IsSiteAdmin="True" IsDomainGroup="False" Flags="0" /> <Groups> <Group ID="3" Name="Team Site Owners" Description="Use this group to give people full control permissions to the SharePoint site: Team Site" OwnerID="3" OwnerIsUser="False" /> </Groups> </GetCurrentUserInfo> </GetCurrentUserInfoResult> </GetCurrentUserInfoResponse> </soap:Body> </soap:Envelope>