cancel
Showing results for 
Search instead for 
Did you mean: 

Posting xml to webservice through rest post snap

yashasvi74
New Contributor

Hi ALL,

There’s a requirement where need to post a xml to a webservice using REST POST snap but its not working instead giving error (cannot use SOAP execute snap).
But when trying to post the same xml using postman its working.
It would be great if someone can help.
image

1 ACCEPTED SOLUTION

@yashasvi74

No, my proposal is to:

  • After File Reader Snap(if file that you are reading is xml) to add Document to Binary and then pass the content to REST Post Snap.

BR,
Spiro Taleski

View solution in original post

7 REPLIES 7

Hi @Spiro_Taleski

On doing this I am getting error in Rest post snap. PFB the snapshot.
image

Regards,
Yashasvi

@yashasvi74

No, my proposal is to:

  • After File Reader Snap(if file that you are reading is xml) to add Document to Binary and then pass the content to REST Post Snap.

BR,
Spiro Taleski

bojanvelevski
Valued Contributor

The REST Post snap is offering you a single file upload, so there’s no need to parse the file.
Try upload the file directly into the snap.

image