Skip to Content
0

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

Jan 12, 2017 at 12:54 AM

82

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

A K Jun 15, 2017 at 05:59 AM
0

use your project namespace followed by folder location

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

Share
10 |10000 characters needed characters left characters exceeded