To be honest, I don't think that this is a problem with the API, but I was wondering if anyone else has seen this problem or could offer a suggestion for a fix.
I developed a working app to pull KB entries out of Kayako using the SOAP service and put them on our website. Locally everything works just fine, but when we moved the app to our QA server we got a strange response from the web-service call. Tests were done using the same browser on the same machine, with the same Kayako data-source. Code was identical on both sites. I tried IE, Chrome and FireFox and all results were the same.
On the LOCAL (working) site the response was:
CODE
<?xml version="1.0" encoding="utf-8" ?><xjx><cmd n="as" t="artRow_46_91" p="style.display"><![CDATA[]]></cmd><cmd n="as" t="artBody_46_91" p="innerHTML"><![CDATA[Our Contact page is located <a title="Contact Us" href="http://172.16.70.18/pages/contact_us.html">here</a>.]]></cmd></xjx>
On the QA (not-working) site the response was:
CODE
<?xml version="1.0" encoding="utf-8" ?><xjx><cmd n="as" t="artRow_46_91" p="style.display"><![CDATA[]]></cmd><cmd n="as" t="artBody_46_91" p="innerHTML"><![CDATA[Our Contact page is located a title=Contact Us href=http://172.16.70.18/pages/contact_us.htmlhere/a.]]></cmd></xjx>
Notice the difference? The response from the QA site stripped out all the html special chars in the CDATA section, whereas the response from the LOCAL site did not (which is what we want).
I compared PHP.INI and HTTPD.INI and didn't see anything that would cause this discrepancy.
Can anyone suggest a reason for this? This thing is driving me nuts!
Andrew.
Sign In »
Register Now!
Help

Back to top








