AJAX data not being returned

I’m trying to perform an AJAX call to Soap process that returns XML data. I can make the call to the service and have verfied that the service is returning the correct response but when I try to access the data it is blank.

I have tried two different ways, which are listed below. In both cases I don’t get any response back.

First method

 var response = dhx.ajax().sync().get("http://10.55.195.111/services/dr/standard/echoback/SendEchoBack?emi_string=test");

Second method

dhx.ajax("http://10.55.195.111/services/dr/standard/echoback/SendEchoBack?emi_string=test", function(text,xml,XmlHttpRequest){ alert(text); });

There are several different variations of performing the AJAX call in the documentation, maybe I’m mixing up the variations.

Note sure if it matters or not, but this is what the reply message looks like.

<?xml version="1.0" encoding="utf-8"?> <SendEchoBackGetResponse xmlns="http://soap.com/service/echoback/"> <replyMsg> <ebr_code>0</ebr_code> <ebr_desc>GOOD REPLY + ECHO</ebr_desc> <ebr_string>test</ebr_string> </replyMsg> </SendEchoBackGetResponse>

Are the client page and server in question is on same domain?
If not - access to data will be blocked by cross-browser security. You will need to configure server side to allow cross-domain requests first.

Thanks, that is what my problem is. I do a lot of development work from my desktop and with Internet Explorer you can get around the cross-domain issue by putting your local machine in your trusted sites list. With the Touch library I’m using Firefox which doesn’t have as easy of a way to make a site “trusted”. I will just have to move my code out to the WEB server to test with it.