Sending XML as output from flow service

Procedure

  1. Add Transform Pipeline to group the variables that you want to send in a response and drop all unwanted variables.
  2. Use the documentToXMLString service to convert the response document to XML String.
  3. Select the Flow function and then select the SetHttpResponse service to set the HTTP response to success or failure along with the response XML. Map the XML string to the response string and set the response code as required.
  4. On the Overview page, select the Enable Flow service to be invoked over HTTP option. The HTTP request URL appears.
  5. Download a REST client, create a request, and invoke the service.