Advertisement.

TransHimalaya.in

Everest Helicopter Tour for a day

Book exciting packages at www.transhimalaya.in

ASP.NET XML API Login to Polycom RMX 4000 MCU and get meeting summary


Get MCU Token after login from my previous post to proceed: (eg. replace 126 with your token within 15 second of login script execution)

Private Sub btnPost_Click(sender As Object, e As EventArgs) Handles btnPost.Click
        Dim req As System.Net.WebRequest = Nothing
        Dim rsp As System.Net.WebResponse = Nothing

txtXML.Text =  "<TRANS_CDR_LIST>" &

    "<TRANS_COMMON_PARAMS> " &
    "<MCU_TOKEN>126</MCU_TOKEN> " &
    "<MCU_USER_TOKEN>126</MCU_USER_TOKEN>" &
   " <MESSAGE_ID>147</MESSAGE_ID>" &
    "</TRANS_COMMON_PARAMS>" &
     "<ACTION> " &
    "<GET>" &
    "<CDR_SUMMARY_LS/>" &
    "</GET>" &
    "</ACTION>" &
    "</TRANS_CDR_LIST>"

Dim uri As String = "http://10.1.253.119"
            req = System.Net.WebRequest.Create(uri)
            req.Method = "POST"
            req.ContentType = "text/xml"
            Dim writer As New System.IO.StreamWriter(req.GetRequestStream())
            writer.WriteLine(txtXML.Text)
            writer.Close()
            rsp = req.GetResponse()
  Dim sr As New System.IO.StreamReader(rsp.GetResponseStream(), System.Text.Encoding.[Default])
                Dim backstr As String = sr.ReadToEnd()
                txtResponse.Text = backstr

End Sub


Here is the response received from above xml. You will get all the meetings held till date in response xml. Now you have to process it to get desired results. The returned data may be huge in size more then 1 mb sometimes..
.


Comments

Most Viewed Post

solution for facebook static.ak.fbcdn.net waiting

Connect Sony XPLOD MEX-BT2500 Bluetooth CD Receiver with ur mobile

Crystal Report : Show data horizontally (Left to right) i.e. columns as rows

Google+ Followers