Platform
Learn
Community
Support
Partner Center
Sign up
or
Log in
logout
Account Settings
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Learn
Training
Documentation
Evaluation Guide
What's New
Community
Home
Forums
Forge
Ideas
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Sign up
or
Log in
Home
Forums
Forge
Ideas
Members
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Technology & Integration
Change dynamically REST API URL
Community
›
Forums
›
Technology & Integration
Change dynamically REST API URL
New Post
New Post
André Alho
Posted on 2015-12-15
André Alho
Rank: #183
Posted on 2015-12-15
Hi everyone!
I have an issue regarding a REST API integration.
1st of all we call a method to get an
Authorization Token
and an
end point URL
. No problem!
2nd This service specifically uses some kind of load balancer and will return the URL where we should do next requests with Authorization Token. And now we have a problem! We can only do that on service center... :(
Do you guys know any way of changing dynamically the URL of the REST API?
Something like Extension
EnhancedWebReferences
- Method
SetWebReferenceURL
Thanks
Kilian Hekhuis
mvp_badge
mvp_label
Posted on 2015-12-15
Kilian Hekhuis
mvp_badge
mvp_label
Rank: #9
Posted on 2015-12-15
Solution
Hi Andre,
I've never done it, but I think you can do stuff in the OnBeforeRequest, especially the advanced one. You can find more info
here
.
Solution
João Rosado
Posted on 2015-12-15
João Rosado
Rank: #13
Posted on 2015-12-15
Solution
Just a quick note on Killian answer.
The url can only be set in the
OnBeforeRequest. The url is pretty much the only thing that cannot be changed in the
OnBeforeRequestAdvanced since the C#/Java correspondent Request objects are already created at that point and the url is readonly in them.
Regards,
João Rosado
Solution
Kilian Hekhuis
mvp_badge
mvp_label
Posted on 2015-12-16
Kilian Hekhuis
mvp_badge
mvp_label
Rank: #9
Posted on 2015-12-16
Solution
Ok, I stand corrected. Thanks!
Solution
André Alho
Posted on 2015-12-16
André Alho
Rank: #183
Posted on 2015-12-16
Solution
Solved! :)
Thanks
Solution
Martin den Braven
Posted on 2015-12-18
Martin den Braven
Rank: #637
Posted on 2015-12-18
Solution
Hi!
I have an additional question (also made a post
here
)
At the moment I use the OnBeforeRequestAdvanced event to call an extention to add NTLM authentication to the request. But because it is a shared component between several applications we have different endpoints en we also want to change the baseURL. But this is not possible in the advanced event.
Is there a solution for this problem?
Solution
Quick Reply
attachment
Choose File
No file chosen
Submit
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Community Quick Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...