Error with tRest component (XML POST body)

Six 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,

 

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.