[What's new in WCF4] Simplified configuration - or: "Look ma: my config shrinks!"
Manually deploying .NET Services Service Bus-enabled applications

[What's new in WCF4] .svc-less Activation - or: "Look ma: my [REST] URLs look good!"

[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)...

WCF4 .svc-less activation
...we can have this web.config section for WCF:

        <add relativeAddress="/Hello.svc" service="HelloService"/>
        <add relativeAddress="/Hello" service="HelloService"/>

      <service name="HelloService">
        <endpoint binding="webHttpBinding" contract="IHelloService" />        

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
Of course you can just omit the entry for Hello.svc and then you can activate your WAS-hosted service via
  • 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.


Feed You can follow this conversation by subscribing to the comment feed for this post.

David McCarter

Can't get this to work at all. If I leave off .svc, then the site won't run at all.

Retro Jordans

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

Air Jordan

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.

crimecraft cash

you feel the information is wrong, then please tell us where to find the correct information

Air jodan shoes

Can't get this to function at all. If I leave away .svc, then the website won't operate at all.

cheap ugg boots

totally agree with you, queit interesting, I definitely suggest checking it out.

air yeezys

Your blog is really attractive. It is really a happy time to go through your daily update. Best wishes to my favorite writer!

coach outlet

How wonderful! Break a leg!*

nike air max

Good suggestions as usual!

Supra Shoes

Your English is damn good!

nike air max

*One of these days is none of these days!!!

moncler jackets

*Can't wait! W00t!

coach bags

How can have ability dominated his sentiment? *

coach outlets

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

air jordan

!@@@##How can have ability dominated his

air jordan

articularly on the web where readib

supra skytops

I won't give up*_*

supra skytop

In my mind you are the best*_*

Air Jordan 11

*yes you are right!

Air Jordan 11

*yes you are right!

supra skytop

*Cool piercing!*_*

Air Max 1

No idea where you're going with this, but the title reminds me of the movie Grand Canyon for some reason...*-*

Air Max 90

Listening is the key to this whole process. Well written article. Thank you for sharing. I especially like the quote from President Truman. *-*

air max LTD

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. *-*

Cheap Air Jordan

*You live on in each new day.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Comments are moderated, and will not appear until the author has approved them.

Your Information

(Name is required. Email address will not be displayed with the comment.)