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
Hi Richard,
Please check the documentation about REST.
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?
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
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 ;).