private byte[] FindExperiences(Dictionary <string, object> request)
        {
            if (!request.ContainsKey("SEARCH"))
            {
                return(FailureResult());
            }

            string search = request["SEARCH"].ToString();

            ExperienceInfo[] infos = m_service.FindExperiencesByName(search);

            Dictionary <string, object> result = new Dictionary <string, object>();

            if ((infos == null) || ((infos != null) && (infos.Length == 0)))
            {
                result["result"] = "null";
            }
            else
            {
                int n = 0;
                foreach (ExperienceInfo ex in infos)
                {
                    if (ex == null)
                    {
                        continue;
                    }
                    Dictionary <string, object> rinfoDict = ex.ToDictionary();
                    result["experience_" + n] = rinfoDict;
                    n++;
                }
            }

            string xmlString = ServerUtils.BuildXmlResponse(result);

            return(Util.UTF8NoBomEncoding.GetBytes(xmlString));
        }
 public ExperienceInfo[] FindExperiencesByName(string search)
 {
     return(m_service.FindExperiencesByName(search));
 }
 public ExperienceInfo[] FindExperiencesByName(string search)
 {
     return(m_remoteConnector.FindExperiencesByName(search));
 }