In the above example, I have a web method called “HelloUser(string)” defined in “WebserviceTest” web service. It takes a string variable as parameter named as name. So when I want to invoke the web method for testing then I have to provide the parameter value in the text box as shown above.
But with a little modification to the WebConfig file we can also pass the parameter in the url itself. The process is described as follow:
Then we can pass the parameter value by appending it to the url.
[Hope this will help you with your web method testing.]