How do you use the Windsor-Castle WCFFacility with the WCF 4.0 REST services ?
How you you make the link to the factory, when you don’t have the .svc file anymore?
TIA
Søren
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using Windsor 3.0 this is pretty straightforward (if I have understood your question correctly, my apologies if I am missing something).
The simplest thing to do to show you is to create a console application and make sure you are referencing:
Now define a RESTful service like this:
Now you have that you can hook up that service into the windsor container like so (and since it is a console application, I will just show you the main method):
And that is a WCF REST service hosted by Castle Windsor.
Pointing a browser at: “http://localhost/frobs” will get you all the frobs and pointing a browser at, say, “http://localhost/frobs/Doob” will get you the frob called Doob, you get the idea…