69
Views
3
Comments
External REST API post need xml file
Question
Application Type
Reactive

HI Outsystems Enthusisats,

I am trying to achieve the following:

Using OutSystems application I am uploading xml file, with help of external Api i need to upload it.

External Api only accepts xml file. Is there any way to send  xml file to the api, instead of JSon?

Thanks,

Anushree.


2021-07-07 13-36-32
Hans Dollen

Hi Anushree,

a REST api always will send JSON and not XML. Soap uses XML. 

A REST api can has a json-field that contains XML.

Another option it create an xml using xmlrecords extension and send it using a HTTP Post 

Regards,


Hans

UserImage.jpg
anushreenk

@Hans 

my use case is the customer is going to upload xml file. My external API looks like following is it possible here?

2021-07-07 13-36-32
Hans Dollen

ah oke, perhaps the following post can help you: https://www.outsystems.com/forums/discussion/15301/rest-webservice-binarydata-request/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.