17
Views
3
Comments
How to manage Request and Response in XML format using REST web service

Hello All,

How to manage Request and Response in XML format using REST web service? Can somebody give me some reference on it.


Thanks

mvp_badge
MVP
Rank: #17

Hi,

Have a look at this post that contains instructions on how to do it.

https://www.outsystems.com/forums/discussion/36143/guide-consume-rest-api-with-xml-request/

Regards,

Daniël

Rank: #20668

Daniël Kuhlmann wrote:

Hi,

Have a look at this post that contains instructions on how to do it.

https://www.outsystems.com/forums/discussion/36143/guide-consume-rest-api-with-xml-request/

Regards,

Daniël

 Hi Daniel,

Thanks for reply.

I followed the steps which are mentioned on the given URL but i stuck after 

"After this you just have to create the XML request your API needs, for example the one we use: "

this statement I don't understand.


 

mvp_badge
MVP
Rank: #17

Hi again,

If you install the following Forge component and the demo application

https://www.outsystems.com/forge/component-overview/9567/advanced-rest/

then on the demo screen

Use the Content negotiation - XML, you see how how an OutSystems API can return either JSON or XML based on the content type passed on Accept header.

It also demonstrate how to call an the REST api that returns XML.

Regards,

Daniel