cancel
Showing results for 
Search instead for 
Did you mean: 

Send XML file with method POST in SAPUI5 to a oData Service

0 Kudos

Hi, i want to send a XML file with the object XMLHttpRequest this way:

xhttp.open("POST", "URL of the oData service", true);

xhttp.send(file);


The problem is the file is located in a folder and i dont know how to reference the file in a variable.

Accepted Solutions (0)

Answers (1)

Answers (1)

karthikarjun
Active Contributor
0 Kudos

use your project namespace followed by folder location

Ex: com.example.util.xml.filename.xml