Hi All
Im trying to consume a Rest API internally without success, when i try to import VIA URL:
The following error appear:
How can i solve this?
Thanks,
FV
The consumed webservice needs to have SSL/TSL. (https).
If the target webservice is unable to expose itself secure, you can always fall back to use a component to make an unsafe webrequest, however this means that you won't be able to consume it automaticaly using Outsystems.
I made a component which tackles this (though it's for binary downloads, but you can look and change the code to fit your needs).
https://www.outsystems.com/forge/2763/
if the endpoint is actually using SSL, then the odds are that:
You could use this plugin if your rest didn't use SSL
https://www.outsystems.com/forge/component-overview/2250/rest-ignore-certificates
But this is not recommended in production environment
Hi,
Thanks very much for the reply's, but how i can import the methods to service studio using the endpoint?
Fábio Vaz wrote:
Have you follow this ?
https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs/Consume_a_REST_API
Toto wrote:
Toto,
By your reply i understand that's impossible import all methods using the endpoint if needs a Certificate. Im correct?
Not really, what i show you from the link is the "wizard" that help you to consume REST.
You could create your own REST consume manually.
Hi Fábio,
If your REST service is accessible only via HTTPS (not HTTP), then obviously the HTTPS connection must be secure, i.e. there must be a valid certificate present. If there is none, you cannot use the "Add all methods" button. Note that even if you create, like Toto wrote, the REST service "manually" (i.e. add a single method one by one), you still cannot call the REST service, as calling it will also require a secure connection if useing HTTPS.