« Ctrl-Q + IE7 = Cool Tiles | Main | Thank you »

2007.05.08

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451806669e200d8353697ad69e2

Listed below are links to weblogs that reference WCF for the Web - a Smackdown:

Comments

Erik Johnson
Spot on. I also like the SoapReceiver class in WSE, which gives you direct access to the HttpContext but nicely separates SOAP calls from non-SOAP calls at the same address. Even "resourcey" services might want to handle a little SOAP from time-to-time. Again, nice job.
Darrel Miller
Not sure where I read it, but I think someone mentioned that the config file support was not there yet. I'm using a Windows Service as host and with three lines of code my service is up and and running WebServiceHost host = new WebServiceHost(typeof(PunchClockService), new Uri("http://localhost:8002/")); host.AddServiceEndpoint(typeof(IPunchClockService), new WebHttpBinding(), dataset + "/ShopService/PunchClock"); host.Open();
Steve Maine
I think simple things should be simple too. Config sucks, and its too much of a pain. That's why we build the WebServiceHost and WebServiceHostFactory. I haven't gotten to blog about this but you've given me the motivation :) You should be able to just drop this whole thing in a .svc file and go. You'll be able to hit it at http://localhost/webapp/foo.svc/GetMessage (or whatever's appropriate for your base address) <%@ ServiceHost Language=C# Debug="true" Factory="System.ServiceModel.Web.WebServiceHostFactory" Service="Improving.Samples.WCF.Web.Hello" %> using System.ServiceModel; using System.ServiceModel.Web; namespace Improving.Samples.WCF.Web { [ServiceContract()] public class Hello { [OperationContract] [WebGet()] // Not very, um, resourcey, but... public string GetMessage() { return "Hello, Cruel World"; } } } No config. Just a single file. Simple things are simple, I hope.
Steve Maine
BTW, I have a post up about this now: http://hyperthink.net/blog/2007/05/08/A+Brief+Aside+WebServiceHostFactory.aspx
J.D. Hicks
I found this helpful http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2670799&SiteID=1
Capo
j.d.hicks, that link WAS helpful...

The comments to this entry are closed.

November 2008

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Blog powered by Typepad

We Like