Hi all I have created and registred osgi service which returns json string, but I have some problems with calling the service in the sling model. I forgot how is the correct way. Should I use @INJECT Or @OSGIService?
I would look at using WCMUsePojo in this case - then you can call a Restful service from that class and display in the front end of the HTL component - Article and video here: