• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Technology
    • Development
    • Hardware
    • Intune
    • Microsoft
    • Office
    • Office 365
    • Security
    • SharePoint
    • Software
    • SQL server
  • Personal development
    • Blog
    • Career
    • Freelancer
    • Knowledge
    • NEWS
    • Private
    • Thoughts
  • Consulting services
  • Contact me

Not only IT

About life, IT and other things...

Home » Technology » SharePoint » WCF and SharePoint

WCF and SharePoint

May 30, 2011 By Tomasz Szulczewski Leave a Comment

WCF and SharePoint

Recently I was checking options to utilize WCF together with SharePoint. In SharePoint 2007 it was difficult but SharePoint 2010 is different story as it was written in .net 3.5, which fully support WCF. Creating WCF and putting it into SharePoint hive is simple, you need just to remember about a few things:

1. Your implementation class needs following information

[BasicHttpBindingServiceMetadataExchangeEndpointAttribute] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] It will allow SharePoint to automatically create a metadata exchange endpoint for your service


2. You need your own SVC file like this one:<%@ServiceHost Language=”C#” Debug=”true” Service=”MyNameSpace.MyService, $SharePoint.Project.AssemblyFullName$” Factory=”Microsoft.SharePoint.Client.Services.MultipleBaseAddressBasicHttpBindingServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

This Token is Dll of Microsoft.SharePoint.Client.ServerRuntime

 

All works fine and there’s no problem with utilize WCF via C# application or SharePoint Designer. But funny thing. When I was trying to useit with InfoPath it doesn’t work… I mean InfoPath can’t understand XML schema of such service. I was trying all solutions and nothing. I even posted the problem on the SharePoint forum , but there’s no feedback and I saw similar problems on the Internet from other users.

[adblockingdetector id=”5770e6ed85560″]


Related

Filed Under: SharePoint Tagged With: SharePoint

About Tomasz Szulczewski

I've got more than 20 years of IT experience. IT is my passion and I am still increasing my skills. I work as a SharePoint, Office 365 and Azure architect.

Reader Interactions

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Join the Newsletter

Social media

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Search this site

Sign up for Wise accounts

Signup and earn $25

payoneer
payoneer

My latest achievement

Microsoft 365 Certified: Enterprise Administrator Expert
Microsoft 365 Certified: Enterprise Administrator Expert

Tags

Azure Azure Active Directory BizSpark Blog career Certification cloud conference edge freelance Freelancer Hardware home office InfoPath Intune Knowledge licensing Microsoft Microsoft 365 News Office Office 365 Personal development Power virtual agent Private security SharePoint SharePoint designer SharePoint online Software SQL server upwork Windows Windows 365 yammer

Footer

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2022 Tomasz Szulczewski