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: 
StefaanSomers
Contributor II
Contributor II

Sample job making POST with tRestClient

I'm trying to create a simple job where I just want to call the POST-method of a REST-service.

Input for a tRESTClient is body of type Document. But it's not clear on how I can set this. I need to send the following info to the endpoint :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://example.com/matching">
<soapenv:Body>
<ns:match>
<action>
<index>
<caseType>job</caseType>
<indexId>default</indexId>
</index>
<properties>
<fromHits>0</fromHits>
<maxHits>10</maxHits>
</properties>
<conditions>
<ns:matchAllCondition>
<occur>SHOULD</occur>
<weight>1</weight>
</ns:matchAllCondition>
</conditions>
</action>
</ns:match>
</soapenv:Body>
</soapenv:Envelope>

 

It responds with XML so how this needs to be parsed afterwards seems also to be very complex.

There is not much documentation on how this needs to be done. So if anyone has a simple sample job which is covering the same scenario this would be great. 

Labels (1)
  • REST

1 Reply
Denis_Segard
Support
Support

Hello,

Denis_Segard_0-1752152810591.png

 

Denis_Segard_1-1752152842093.png

 

Kind regards
Denis