Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 15, 2017 at 05:59 AM

    use your project namespace followed by folder location

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

    Add comment
    10|10000 characters needed characters exceeded