Passing Parameters to .NET Web Service as a Query String (GET Method) or POST Request

First of all the way of passing parameters must be defined in web.config as follows:

<add name="HttpGet"/>
<add name="HttpPost"/>

Then the URL of the web service may include parameters as query string.

MethodCaseSensitive is the name of web method to be performed as part of the webservice called webservice.asmx.

In case you need POST method of sending parameters just use a form and text fields as in the following example:

<form name="input" action="" method="post">
<input name="parameter1" type="text">
<input name="parameter2" type="text">
<input value="Submit" type="submit">

Both of methods return XML response as it is defined in the web method.

The Web Service results can be easily checked using the .NET ability for integrated passing of parametersin a web interface:

The screen allows the user to enter web service parameters and submit them. The result is the same.