Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
How to pass XML in Body of POST Request in React Native?

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>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!