コード例 #1
0
 /// <summary>
 /// Creates the Meeting
 /// </summary>
 /// <param name="MeetingName">Creates the Meeting with the Specified MeetingName</param>
 /// <param name="MeetingId">Creates the Meeting with the Specified MeetingId</param>
 /// <param name="AttendeePW">Creates the Meeting with the Specified AttendeeePassword</param>
 /// <param name="moderatorPW">Creates the Meeting with the Specified ModeratorPassword</param>
 /// <returns></returns>
 public DataTable CreateMeeting(string MeetingName, string MeetingId)//, string AttendeePW, string moderatorPW)
 {
     try
     {
         string          StrServerUrl     = this.config.ServerUrl;
         string          StrSalt          = this.config.ServerSecret;
         string          StrParameters    = "name=" + MeetingName + "&meetingID=" + MeetingId;// + "&attendeePW=" + AttendeePW + "&moderatorPW=" + moderatorPW;
         string          StrSHA1_CheckSum = ClsData.getSha1("create" + StrParameters + StrSalt);
         HttpWebRequest  request          = (HttpWebRequest)WebRequest.Create(StrServerUrl + "/create?" + StrParameters + "&checksum=" + StrSHA1_CheckSum);
         HttpWebResponse response         = (HttpWebResponse)request.GetResponse();
         StreamReader    sr = new StreamReader(response.GetResponseStream());
         DataSet         ds = new DataSet("DataSet1");
         ds.ReadXml(sr);
         return(ds.Tables[0]);
     }
     catch (Exception ex)
     {
         objclsLog.Write(ex.Message);
         return(null);
     }
 }