Communicator Web Access Problem

Hi All,

I am working on web application which communicate with Communicator Web Access and Live communication Server. I can successfully logged into LCS system using my web application. And also can start Poll method of Communicator web access Ajax API. But 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.

I got following result:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
< div id="sessionUpdateString">
< DIV version="LCW.1" uri="sip:administrator@lcs.gateway.com" session="15003" latestUpdate="1">
< DIV type="epid" value="24-E3-4C-42-B6">
< DIV type="policy" action="update" userNotice="" defaultOrSearch="True" defaultSearchFields="12" >
< DIV type="contact" action="add" uri="sip:administrator@lcs.gateway.com" name="AdministratorDisplay" email="admin@lcs.gateway.com" phone="" iconUri="" note="Administrator here" oof="" calendarInfo="" presence="Online" availability="Free" endpointCategory="Web" >
< DIV type="contact" action="add" uri="sip:hardik@lcs.gateway.com" name="Hardik P. Patel" email="" phone="" iconUri="" note="" oof="" calendarInfo="" presence="Online" availability="Free" endpointCategory="None" >
< DIV type="options" action="untag" uri="sip:hardik@lcs.gateway.com">
< DIV type="group" action="add" groupId="1" name="Gateway">
< DIV type="group" action="addContacts" groupId="1" name="Gateway" contacts="sip:hardik@lcs.gateway.com ">
< DIV type="group" action="add" groupId="2" name="Gateway1">
< DIV type="acl" action="add" acl="allow" users="sip:hardik@lcs.gateway.com " >

< div id="queryTimeout">3000

So what is the problem, why am i getting xml output instead of JSON? Even, xml output is returned in sample application which comes with Communicator Web Access Ajax API.

I can do everything using office communicator and communicator web access.

My another problem 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 problem arise in most of all the method (like "Acl", "SetPresence" etc.)

One another problem is that after some time (around 2-3 minutes) my session is terminated. (SessionFailure). Why this happen? am i missed any setting for session?

Please help me. Its very urgent.

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.