I followed this tutorial and successfully created a custom service application in my sharepoint server, my question is how to consume it from another sharepoint solution, for example I create a new empty sharepoint project and add a new application page, how I can get access to strongly type service application object from the code behind of the application page?
Thanks for your help