[Note: all the information was gathered based on a close-to-Beta 1 build of .NET Framework 4.0 and Visual Studio 2010. Details may vary and change]
Another interesting and most wanted feature in WCF4 is .svc-less activation when WAS-hosting WCF services. This essentially means that I do no longer need to have a physical .svc file for each of my services but just can specify the activation path in config.
So, with this simple WAS-hosted WCF project (without any .svc file)...
...we can have this web.config section for WCF:
<system.serviceModel>
<serviceHostingEnvironment>
<serviceActivations>
<add relativeAddress="/Hello.svc" service="HelloService"/>
<add relativeAddress="/Hello" service="HelloService"/>
</serviceActivations>
</serviceHostingEnvironment>
<services>
<service name="HelloService">
<endpoint binding="webHttpBinding" contract="IHelloService" />
</service>
</services>
[...]
This means that we now have one endpoint which can be activated (or 'addressed' in the first place) via two URIs, namely
- http://myserver/myapp/Hello.svc and
- http://myserver/myapp/Hello
- http://myserver/myapp/Hello.
Pure joy for the REST-afarians :)
(and yes: this also works with any other binding)
That's it for now for a first introduction to .svc-less activation in WCF4.
Stay tuned for more.
Can't get this to work at all. If I leave off .svc, then the site won't run at all.
Posted by: David McCarter | 03/31/2010 at 10:24 PM
Every single site I've gone to to research this company has some person complaining about the statistics/information, yet no one has provided information to contradict what was presented. If you feel the information is wrong, then please tell us where to find the correct information
Our store offers you all kinds of favourite products like Adidas World Cup 2010 Shoes
Posted by: Retro Jordans | 08/16/2010 at 11:08 AM
So nice blog! But I have a suggestion that you can add some humorous language up to your article. Maybe you can write more better.
Posted by: Air Jordan | 09/13/2010 at 02:36 AM
you feel the information is wrong, then please tell us where to find the correct information
Posted by: crimecraft cash | 10/08/2010 at 08:00 AM
Can't get this to function at all. If I leave away .svc, then the website won't operate at all.
Posted by: Air jodan shoes | 10/14/2010 at 05:08 AM
totally agree with you, queit interesting, I definitely suggest checking it out.
Posted by: cheap ugg boots | 10/16/2010 at 10:50 AM
Your blog is really attractive. It is really a happy time to go through your daily update. Best wishes to my favorite writer!
Posted by: air yeezys | 10/30/2010 at 09:24 AM
How wonderful! Break a leg!*
Posted by: coach outlet | 11/09/2010 at 03:36 AM
Good suggestions as usual!
Posted by: nike air max | 11/13/2010 at 09:34 AM
Your English is damn good!
Posted by: Supra Shoes | 11/16/2010 at 02:25 AM
*One of these days is none of these days!!!
Posted by: nike air max | 11/16/2010 at 08:25 AM
*Can't wait! W00t!
Posted by: moncler jackets | 11/17/2010 at 01:23 AM
How can have ability dominated his sentiment? *
Posted by: coach bags | 11/17/2010 at 04:23 AM
are lots of reasons to keep sentences short, particularly on the web where readibility and usability are extra issues. It's just a case of following plain English
Posted by: coach outlets | 11/21/2010 at 06:24 PM
!@@@##How can have ability dominated his
Posted by: air jordan | 11/21/2010 at 06:57 PM
articularly on the web where readib
Posted by: air jordan | 11/21/2010 at 07:19 PM
I won't give up*_*
Posted by: supra skytops | 11/28/2010 at 03:45 AM
In my mind you are the best*_*
Posted by: supra skytop | 12/01/2010 at 07:32 AM
*yes you are right!
Posted by: Air Jordan 11 | 12/01/2010 at 07:59 AM
*yes you are right!
Posted by: Air Jordan 11 | 12/01/2010 at 07:59 AM
*Cool piercing!*_*
Posted by: supra skytop | 12/02/2010 at 07:45 AM
No idea where you're going with this, but the title reminds me of the movie Grand Canyon for some reason...*-*
Posted by: Air Max 1 | 12/03/2010 at 09:18 AM
Listening is the key to this whole process. Well written article. Thank you for sharing. I especially like the quote from President Truman. *-*
Posted by: Air Max 90 | 12/03/2010 at 09:24 AM
Yes it is a great thought on what should be at work,If people follow your points then they will definitely be successful in their career and job. I am gonna follow it. *-*
Posted by: air max LTD | 12/03/2010 at 09:28 AM
*You live on in each new day.
Posted by: Cheap Air Jordan | 12/10/2010 at 01:28 AM