What is the best way to send XML from Appian to REST Service

Hi All,
We have a requirement to send a XML generated from Appian to External Service [REST Service]. This is not a WSDL Service.
What would be the best way to POST the xml to REST API

If anyone experienced similar requirement in your way, Please share your thoughts

OriginalPostID-241342

  Discussion posts and replies are publicly visible

Parents
  • @mohammedz, You have these options:
    1. a!httpWrite() function - This can be used from SAIL form. It returns a writer. So, you need to use it in SAIL form.
    2. Use the HTTP Query Smart Service from the process model. You can use the POST request and pass the data. You may need to specify the application or content type in the headers of the request to specify that you are passing XML in the body/headers. I would prefer this, as it is easy to setup/configure(compared to the function where you need to use it in SAIL form in combination with bind() ). If possible, you could also create a reusable process model for this, and call it from a SAIL form in a saveInto using the a!startProcess function.
Reply
  • @mohammedz, You have these options:
    1. a!httpWrite() function - This can be used from SAIL form. It returns a writer. So, you need to use it in SAIL form.
    2. Use the HTTP Query Smart Service from the process model. You can use the POST request and pass the data. You may need to specify the application or content type in the headers of the request to specify that you are passing XML in the body/headers. I would prefer this, as it is easy to setup/configure(compared to the function where you need to use it in SAIL form in combination with bind() ). If possible, you could also create a reusable process model for this, and call it from a SAIL form in a saveInto using the a!startProcess function.
Children
No Data