I am trying to call our web service, from web resource. It gets invoked on Sales Order save. Entity Order -> Form -> onSave. It calls our web service.
The problem is I get empty response.
Here is the form

Here is where I am adding the script

When I debug this in chrome browser, the request goes in properly and but response is empty.
At this line
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4) {
if (xmlhttp.status == 200) {
alert('done. use firebug/console to see network response');
}
}
}
The highlighted line gets status code as 0. The request is in correct format, I have it from working JS from some other application.
*This post is locked for comments
I have the same question (0)