Error with tRest component (XML POST body)

Eight Stars

Error with tRest component (XML POST body)

Hi,

 

I'm making a POST API call using the access token and I have to pass a XML body. I was able to get the desired result with the same credentials using the Postman application.

When I paste the same contents here in tRest im getting the below response

 

<Envelope>

<Body> <RESULT>

<SUCCESS>false</SUCCESS>

</RESULT>

<Fault>

<Request/>

<FaultCode/>

<FaultString><![CDATA[Session has expired or is invalid]]></FaultString>

<detail>

<error>

<errorid>145</errorid>

<module/>

<class>SP.Admin</class>

<method/>

</error>

</detail>

</Fault> </Body>

</Envelope>

 

Attaching try screenshot of my tRest component. I think I have to escape < and > but not sure. Can any of you please help me out?

If I have to escape these special characters, how do I do it?

 

Thanks,

 

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch