Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

POST HTTP request with XML body

Hello, we are trying use the open source tool to process data from a file and invoke an API that takes XML body as payload using HTTP request.

 

We would like to know how we can post an xml payload in the http request body and get a response back that we can parse.

 

Can you please share any documentation or sample code that we could refer to?

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

We are trying to use tRESTClient as below. need to pass the XML payload in the body . Please suggest how to configure the tREST client component.

0683p000009M1LE.png

View solution in original post

8 Replies
vapukov
Master II
Master II

hello,

 

whats wrong with tRestClient component?

Anonymous
Not applicable
Author

We are trying to use tRESTClient as below. need to pass the XML payload in the body . Please suggest how to configure the tREST client component.

0683p000009M1LE.png

vapukov
Master II
Master II

tRESTClient component have a schema (body/string)

0683p000009M1W6.png

 

you need prepare this body before call tRESTClient

0683p000009M1OT.png

 

0683p000009M1TI.png

 

 

Anonymous
Not applicable
Author

instead of tREST Client, I used tREST which was more apparent for the payload. Thanks !
vapukov
Master II
Master II

on your screenshots  - tRESTClients not tREST 

 

welcome 🙂

Anonymous
Not applicable
Author

oh yes .. but I still think I might go with tRESTClient.
vapukov
Master II
Master II

sorry, I can't understand you:

- you ask about tRESTClient

- my samples use it

- you are confirming you want to use tRESTClient

 

what wrong? 0683p000009MACn.png

 

in any case - all work as described

Anonymous
Not applicable
Author

sorry for the confusion but both the methods work. thanks for all the support!