I have a asmx service with a single input query.
http://service.asmx/Userdetails?UserID=1
is it possible to call this service with the URL: http://service.asmx/Userdetails/userID/1 or http://service.asmx/Userdetails/1
I have a asmx service with a single input query.
http://service.asmx/Userdetails?UserID=1
is it possible to call this service with the URL: http://service.asmx/Userdetails/userID/1 or http://service.asmx/Userdetails/1
.asmx services use SOAP
approach, which simply is having method with parameters and calling it from code.
What you want is REST
, methods can be called from simple GET
methods or from browser like URL you have provided.
If you decide to use REST style than ASP.NET Web.Api is easy and powerfull tool for building REST services.