This is my first question and I’m quite new to sap development, so I hope I can make this clear enough. I’m trying to make a call to RFC from an Android app. I created the function module on my company’s SAP system and then exposed it as SOAP web service. Then I wrote a […]
- Tags 'Access-Control-Allow-Methods: GET, 'PUT', 'vary': 'Origin, "crossDomain": true, //xml contentType : "text/xml; charset=\"utf-8\"", but my SOAP url is of the kind "http://system domain:8000/service address", but so far I haven't found a way to fix it. I have this in the head tag of my index.html: <meta http-equiv="Content-Security-Policy" conten, but when I try to run it on the Android device it gives me this error: jquery-dbg.js:10210 POST http:::ERR_NAME_NOT_RESOLVED I think the pro, cache: false, complete : function(xhr, data : request, dataType: "text", DELETE, disabling web security, error: function(xhr, externalRequestName : 'ZTestRfc', headers: { "Access-Control-Allow-Origin": "*", I know, I will try to provide it. EDIT: maybe this was already obvious, jqXHR) { response = data; console.log('success'); console.log(response); }, OPTIONS, post, processData: false, since when I try to run the webapp without disabling chrome web security it does tell me that Access to XMLHttpRequest at from origin has bee, so I hope I can make this clear enough. I'm trying to make a call to RFC from an Android app. I created the function module on my company's, SOAPaction : "urn:sap-com:document:sap:soap:functions:mc-style:zrfc_service:ZTestRfcRequest", status) { //things } }) When I run it as a webapp in Chrome, status) { console.log("ERROR"); console.log(xhr); }, success: function(data, textStatus, the ajax call works fine, This is my first question and I'm quite new to sap development, to SAPUI5 and to Android development so I basically put together what I found online and ended up with this. I have to use RFC to connect wit, type: 'POST', url