SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

You can just do it the normal way by adding service reference to your service inside the project. And consume it normally as you do with any wcf service. But you need to get the config right. You should enable impersonation in the client config.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.