3.1.4.32 GetCurrentUserInfo

The GetCurrentUserInfo operation retrieves the user name and display name information of the current user.

The following is the WSDL port type specification of the GetCurrentUserInfo WSDL operation.

 <wsdl:operation name="GetCurrentUserInfo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
   <wsdl:input message="tns:GetCurrentUserInfoSoapIn"/>
   <wsdl:output message="tns:GetCurrentUserInfoSoapOut"/>
 </wsdl:operation>

The protocol client sends a GetCurrentUserInfoSoapIn request message (section 3.1.4.32.1.1), and the server (2) responds with a GetCurrentUserInfoSoapOut response message (section 3.1.4.32.1.2) as follows:

  • The protocol client MUST provide out parameters to hold the current user name and display name.

  • The server (2) MUST set those parameters to the current user name and user display name.

  • In the event of an application error, the server (2) MUST set the current user name to the string "i:Anonymous" and user display name to the string "Anonymous".