ZohoShow API method show.getPresentations hangs
Hi,
I've successfully implemented the ZohoWriter and ZohoSheet api
calls, however I am unable to get a response when I use the ZohoShow
api call.
I am making the call from javascript after succesfully getting a ticketid
The xmldocument is being created as follows
getxmldoc: function() {
var thestring= "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
'<methodCall xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://show.zoho.com/schema/presentations.xsd">' +
"<methodName>show.getPresentations</methodName>" +
"<params>" +
"<param>" +
"<value>" +
"<struct>" +
"<member>" +
"<name>fromindex</name>" +
"<value><int>0</int></value>" +
"</member>" +
"<member>" +
"<name>noofdocstoshow</name>" +
"<value><long>6</long></value>" +
"</member>" +
"</struct>" +
"</value>" +
"</param>" +
"</params>" +
"</methodCall>";
var xmlParser, xmlDocument;
try {
xmlParser = new DOMParser();
xmlDocument = xmlParser.parseFromString(thestring, 'text/xml');
return xmlDocument;
}
catch (e) {
alert("Can't create XML document.");
return null;
}
},
and the api call is
http_request.open('POST', 'http://show.zoho.com/api?ticket=' + ticketid + '&apikey=********************************');
The only difference between this call and the ZohoWriter & ZohoSheet calls seems to be the inclusion of the namespace parameters in the methodcall.
What if anything should I be doing differently.
Thanks