public string GetUserInfoByName(string userName)
    {
        if (!header.VerifyCredentials(header.UserName, header.Password, header.Type))
        {
            return(string.Empty);
        }

        string url = System.Configuration.ConfigurationManager.AppSettings["WSAF.PhotoUrl"];

        User user = OrganizationPublicHelper.GetUserInfo(userName);

        if (!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(user.Photo))
        {
            user.Photo = url + user.Photo;
        }
        return(XmlSerializer.Serialize(user));
    }