67
Views
4
Comments
Call URL/REST
Question
Application Type
Reactive

Hi all.

Please see the URL below from a different application platform I am involved with.  This is will call a validator service at our location and validate whether the parameter values attached to it are valid or not by returning the results via XML.  I want to do this in Outsystems as well.


In OutSys, how do I call the URL below and parse the XML results to provide feedback to the user that their entered values are correct?  There is a username and password associated with this service that I want to submit with the URL so I don't have to prompt the user.  How do I safely do that in OutSys?


https://my.url.goes.here/my-gateway/rest/v2/validator?type=xml&company=mycompany&surcode=123232&category_code=TF567&transaction_date=1/10/2020

2023-09-28 14-21-55
Daryna Kravets

Hi Richard,

Please check the documentation about REST.

UserImage.jpg
Richard Dwyer

Thank you, but I find the documentation on this over my head. Can you anyone point me to a working example of calling a URL and parsing the results returned within their application?

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

Here is the documentation that explains step-by-step how you can consume a REST API. 

https://success.outsystems.com/documentation/11/extensibility_and_integration/rest/consume_rest_apis/consume_one_or_more_rest_api_methods/

or watch this video:

https://www.youtube.com/watch?v=gNyWIeJYfG0

Given that you didn't provide the actual URL, there is not more the community can help you then just pointing out to the instructions on how to consume an API.

Regards,

Daniel

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Richard,

First, if standard Platform documentation is "over your head", you might consider a career change. Being able to read and understand technical documentation is absolutely paramount when you're a software developer.

Secondly, and something the others that have answered failed to notice, you are talking about XML as output. Unfortuntaly, OutSystems does not natively support XML as result from a REST API method. I could try to explain you how could go about handling it, but I'm afraid that would be over your head, and we can't have that, now can we ;).

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