Consume custom service application in sharepoint

636 views Asked by At

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 created a new empty sharepoint project and added a new application page, how I can get access to strongly type service application object from the code behind of application page?

Thanks for your help

1

There are 1 answers

0
CallMeLaNN On

You need to create Service Application Proxy by using SPServiceApplicationProxy. You can see the video and sample code in Creating Custom SharePoint 2010 Service Applications and Consumers.