cancel
Showing results for 
Search instead for 
Did you mean: 

Posting xml to webservice via rest post snap

nshruthi
New Contributor II

Hi All,

There is a requirement to post xml to a webservice , the input for the pipeline is xml and need to pass this xml as it is to webservice.

I am using xml formatter and binary to document and trying to post via rest post snap to webservice but somehow am receiving 400 error everytime.
The same xml when we are trying to post via postman , it is getting posted successfully to webservice.

Below are the screenshots of pipeline:

restpost

image

image

2 REPLIES 2

umashankar316
New Contributor II

Hi Shruthi,

Instead of using REST post we can make use of soap execute snap and we can customize the xml request and invoke webservice to get response back.

Thanks,
Umashankar

jovan_j
New Contributor III

Hi nshruthi,

Please find attached screenshot, with the specified configuration you should be able to post incoming data to your specific URL.
image

Regards, Jovan.