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

1

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.