Question

4
Replies
209
Views
AnirudhJ Member since 2016 4 posts
Macquarie
Posted: 10 months ago
Last activity: 10 months ago

Send XML as String in Connect REST

Hi,

I have a requirement asking a REST API with request as a string. And i have to send a XML in that string . So while sending XML in a string , i get the following error :

Invalid expression or reference: line 1:16 mismatched input '1.0' expecting {<EOF>, '-', '+', '=', '*', '/', '%', '<', '>', '<=', '>=', '==', '!=', '<>', '^=', '~=', '&&', '||', '?', '+=', '-=', '*=', '/=', '%='}

This is because Pega is considering second quote in XML as EOF and hence resulting a error.

Is there a way by which i can send a complete XML unparsed as String input to the REST api.

***Edited by Moderator: Lochan to update platform capability tags***

Low-Code App Development Data Integration
Share this page LinkedIn