<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hosting a WCF service in Windows Sharepoint Services v3.0</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx</link><description>With ASP.NET AJAX Extensions being baked into the .NET Framework 3.5 and the improvements to WCF to support JSON, it seems tempting to write WCF services and host the in Windows Sharepoint Services 3.0 Unfortunately, if you create a WCF service and drop</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Hosting a WCF service in Windows Sharepoint Services v3.0</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx#5277034</link><pubDate>Thu, 04 Oct 2007 21:57:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5277034</guid><dc:creator>greap</dc:creator><description>&lt;p&gt;Just saved me an hour of debugging, thanks!&lt;/p&gt;</description></item><item><title>re: Hosting a WCF service in Windows Sharepoint Services v3.0</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx#6455537</link><pubDate>Wed, 21 Nov 2007 16:42:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6455537</guid><dc:creator>Dan Meineck</dc:creator><description>&lt;p&gt;I have done this and it all worked - thank you.&lt;/p&gt;
&lt;p&gt;The problem i have is that the object SPContext.Current is always null when called from within a method in my SharePoint hosted WCF service - does anyone know why?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;</description></item><item><title>re: Hosting a WCF service in Windows Sharepoint Services v3.0</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx#6463751</link><pubDate>Thu, 22 Nov 2007 06:37:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6463751</guid><dc:creator>gzunino</dc:creator><description>&lt;p&gt;Dan: Requests to WCF services are handled quite differently from requests to ASMX services.&lt;/p&gt;
&lt;p&gt;Essentially, in the very early stage of request processing the system determine if the request is for a WCF service or something else. Requests to WCF services get removed from the regular ASP.NET request pipeline almost immediately. This has the following implications:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;* HttpModules do not get to run. This is very noticeable if you try to secure the service using ASMX web.config constructs like &amp;lt;authorization&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;* You do not have access to System.Web.HttpContext.Current. This is because WCF has its own context concept, distinct from ASP.NET one.&lt;/p&gt;
&lt;p&gt;WSS expects the requests to go through the ASP.NET pipeline (it epxects HttpContext.Current as well as many other ASP.NET only things). This is why SPContext.Current is not working: it is initialized by a WSS HttpModule which did not get a chance to run.&lt;/p&gt;
&lt;p&gt;There are many ways to get around this. One of the best way is to create an SPSite or SPWeb using the Request Url. This is in fact what the SPContext does under the cover.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;-Gilles.&lt;/p&gt;
</description></item><item><title>re: Hosting a WCF service in Windows Sharepoint Services v3.0</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx#6532244</link><pubDate>Mon, 26 Nov 2007 18:42:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6532244</guid><dc:creator>akramer</dc:creator><description>&lt;p&gt;Could anyone send me an example .svc file. and where exactly I need to deploy the .svc file and where to deploy the service code&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ahron&lt;/p&gt;
</description></item><item><title>Calling a WCF WebService from a SharePoint WebPart using JavaScript</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx#8972037</link><pubDate>Wed, 01 Oct 2008 21:44:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8972037</guid><dc:creator>Michael Washam's - SharePoint Blog</dc:creator><description>&lt;p&gt;The following examples demonstrates a JavaScript client calling into a WCF Service which allows updates&lt;/p&gt;
</description></item><item><title>[SharePoint] How to Host a WCF Service in SharePoint</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx#9266899</link><pubDate>Fri, 02 Jan 2009 06:30:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9266899</guid><dc:creator>jasonhuh</dc:creator><description>&lt;p&gt;Sometimes you need to create a WCF service to provide a SharePoint functionality to a remote client....&lt;/p&gt;
</description></item><item><title>How to host a WCF Service inside SharePoint</title><link>http://blogs.msdn.com/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx#9408830</link><pubDate>Mon, 09 Feb 2009 18:45:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9408830</guid><dc:creator>IT Ramblings</dc:creator><description>&lt;p&gt;How to host a WCF Service inside SharePoint&lt;/p&gt;
</description></item></channel></rss>