Forum Discussion

nshruthi's avatar
nshruthi
New Contributor II
8 years ago

Posting xml to webservice via rest post snap

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:

2 Replies

  • umashankar316's avatar
    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's avatar
    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.

    Regards, Jovan.