c# - URL WCF RestFul .net with spring -


i need call service standard url restful:

http://localhost/users : getall user http://localhost/user/1 : user id 1 

but standard urls in wcf looks like:

http://localhost/userservice.svc/getallusers 

i change this, since use spring.net framework in service wcf, must create custom servicehostfactory myservicehostfactory

spring used in project injection dependencies , nothing new object

i try add route in global.asax

routetable.routes.add(new serviceroute("users", new myservicehostfactory(), typeof(userservice))); 

but when call service http://localhost/users , receive error: servicehost supports class service types

i don't understand problem , possible resolve problem ?

thanks help


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -