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>