Hello Guys I have made an React Native Application using Expo and I have a question regarding a fetch call.
Lets say this is my fetch call:
const getMonthReport = async () => {
await fetch("http:/xxx/jasperserver/rest_v2/reportExecutions", {
method: "POST",
headers: {
"Accept": "application/xml",
"Content-Type": "application/xml"
},
body: { ... }
});
}
How can I pass my XML as the body of the request? It looks like this:
<reportExecutionRequest>
<reportUnitUri>/Test/MonthReport2</reportUnitUri>
<async>false</async>
<freshData>true</freshData>
<saveDataSnapshot>false</saveDataSnapshot>
<outputFormat>html</outputFormat>
<interactive>false</interactive>
<parameters>
<reportParameter name="allHrs">
<value>90:00</value>
</reportParameter>
<reportParameter name="holidayHrs">
<value>07:36</value>
</reportParameter>
<reportParameter name="illHrs">
<value>18:00</value>
</reportParameter>
</parameters>
</reportExecutionRequest>