Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to call a rest service with Basic authentication

Question
David.Satorres6134 · Jun 14, 2018

How to call a rest service with Basic authentication

Hi,

I'm getting mad trying to get data from an external REST service that uses Basic Authentication from Ensemble. The BO worked fine when I was using a test server without authentification, but as soon as we need to go to production I cannot have it working.

So far, I've created the username/password at the credentials page (Ensemble-Configure-Credentials). I've setup the BO to use this credentials. But nothing happens.

I've tried with the Rest Client (addon for Mozilla), and using the same address, port and user/pwd works just fine.

So, the question is: how can I use the Basic authentication in a BO in Ensemble? Any help woul be highly appreciated :)

SOLVED: It was my fault... it was failing because of the proxy :P

#Ensemble #Business Operation #REST API

Source URL:https://community.intersystems.com/post/how-call-rest-service-basic-authentication