Some additional information:
When I call the 'OPTIONS' method on the webservice from the RESTClient plugin in FireFox, I get the following return:
- Status Code: 500 Internal Server Error
- Accept: text/xml
- Content-Length: 436
- Content-Type: text/xml; charset=utf-8
- sap-srt_id: 20140725/095838/v1.00_final_6.40/00163E0709881ED484FA2F8EDA9E5A59
When I try to lookup the error in the Business ByDesign system, there seems to be no error that is logged.
(I looked it up under: Applications and User Management -> Input and Output Management -> Business Communication Monitoring -> Rejected Webservice Calls)
The piece of code which im using to make the call:
XMLHttpRequest.open("READ", url, true, username, password);
XMLHttpRequest.setRequestHeader("Content-Type", "text/xml");
XMLHttpRequest.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
XMLHttpRequest.withCredentials = "true";
XMLHttpRequest.onreadystatechange = getData;
XMLHttpRequest.send(body);