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

Regfor
  • 8,515
  • 1
  • 38
  • 51
user223100
  • 43
  • 3
  • 1
    Try this post http://stackoverflow.com/questions/2006828/possible-to-invoke-asmx-service-with-parameter-via-url-query-string – kostas ch. Jun 20 '13 at 06:47

1 Answers1

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.

Community
  • 1
  • 1
Lev
  • 3,719
  • 6
  • 41
  • 56