Problem in Communicator Web Access

Hi All,

I am working on web application which communicates with Communicator Web Access and Live communication Server. I can successfully log into LCS system using my web application.

Problem 1: I am getting xml result from communicator web access instead of JSON.
I send http web request to communicator web access server and get back the result using http web response. I got result into XML instead of JSON.

Code Sample:
requestOutstanding = (HttpWebRequest)WebRequest.Create(m_server + "/cwa/AsyncDataChannel.ashx?AckID=" + ackID + "&Ck=" + userCookieRandomName + "&UA=true");

requestOutstanding.Method = "GET";
requestOutstanding.KeepAlive = true;
requestOutstanding.ConnectionGroupName = m_Uri + "OutstandingGet";
requestOutstanding.UserAgent = userAgent;
requestOutstanding.Accept = "text/json";
requestOutstanding.ContentType = "text/json";
requestOutstanding.CookieContainer = ccContainer;
// The Actual GET
responseOutstanding=(HttpWebResponse)requestOutstanding.GetResponse();
//responseOutstanding.ContentType = "text/json";
// Parse the content of response
stream = responseOutstanding.GetResponseStream();
reader = new StreamReader(stream);
string content = reader.ReadToEnd();

I got following result:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

3000
So what is the problem, why am I getting xml output instead of JSON? I also tried Microsoft sample application comes with Communicator Web Access, which also get XML output instead of JSON.

Problem 2 is that after some time (approx 2 min) session is closed automatically. And I got error “SessionFailure3”.

Problem 3 is then when I want to start IM with any online user, and I tried to call "StartIM" method of Communicator web access Ajax, it returns blank xml. "". As per the help it returns IMID and description field. But I am not getting these fields in output.
Can you please tell me why I am getting blank xml ("")? These problems arise in most of all the method (like "ACL", "SetPresence" etc.)

Please help me.

Thanks,
Regards,
Hardik Patel

Copyright © 1996 Meni Milstein. No portion may be reproduced without my written permission. All registered trademarks or trademarks belong to their respective companies. Should any right be infringed, it is unintentional. Let us know and the matter will be rectified. All other contents that may be linked from this site, and or forum posts in this site are not under our immediate control and not our responsibility. We do our best to maintain all the Forums and editing them sometimes takes several days.