Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8828

Re: Calling a Cloud app studio webservice in JavaScript

$
0
0

Some additional information:


 

When I call the 'OPTIONS' method on the webservice from the RESTClient plugin in FireFox, I get the following return:

  1. Status Code: 500 Internal Server Error
  2. Accept: text/xml
  3. Content-Length: 436
  4. Content-Type: text/xml; charset=utf-8
  5. 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);


Viewing all articles
Browse latest Browse all 8828

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>