Closed karres-illinois closed 3 years ago
Hi, I must say I haven't tested the code with jQeury3.x yet (will have to in the coming months...) As far as I understand from the jQuery website the underlying call, $.ajax, is still returning the jqXHR object that implements the Promise interface. So your code should be okay. OR your call to $.soap doesn't return the jqXHR object?
You can check that like so:
function getLists() {
var tmp = $.soap({
url: "https://lists.mycompany.com/listssoap",
method: "lists"
});
console.r(tmp);
}
(are you sure you don't run into Same-origin policy restrictions?)
Hi
Thank you for the sample code. I am getting an object returned. Since reporting the issue I reverted back to the success/error methodes. It seems like neither of those is being called. A really strange thing is that this actually worked a lot earlier today – the success/error methods.
Cheers
Hi, I have just started using jquery.soap. I have: "jquery": "^3.4.1" and "jquery.soap": "^1.7.3"
The Readme says that it honors the "promise" model. I have the following:
function getLists() { $.soap({ url: "https://lists.mycompany.com/listssoap", method: "lists", }).done(function(data, textStatus, jqXHR) { console.log("DONE"); }).fail(function(jqXHR, textStatus, errorThrown) { console.log("FAIL"); }); }
but when run i get the error in the subject. Am I doing something wrong?