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>
<DIV type="policy" action="update" userNotice="" defaultOrSearch="True" defaultSearchFields="12" ></DIV>
<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>
<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>
<DIV type="options" action="untag" uri="sip:hardik@lcs.gateway.com"></DIV>
<DIV type="group" action="add" groupId="1" name="Gateway"></DIV>
<DIV type="group" action="addContacts" groupId="1" name="Gateway" contacts="sip:hardik@lcs.gateway.com "></DIV>
<DIV type="group" action="add" groupId="2" name="Gateway1"></DIV>
<DIV type="acl" action="add" acl="allow" users="sip:hardik@lcs.gateway.com " ></DIV>
</DIV>
</div>
<div id="queryTimeout">3000</div>
So what is the problem, why am i getting xml output instead of JSON?
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. "<xml></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 ("<xml></xml>")? These problem arise in most of all the method (like "Acl", "SetPresence" etc.)
Please help me.
Thanks,
Regards,
Hardik Patel