Call Web Service | SOAP | WSDL | asmx

Here ParameterService is a Service name on references and ParameterServiceSoapClient is a class name on autogenerated file  reference.cs .



 public void TestMethod()

        {

            try

            {

ParameterService.ParameterServiceSoapClient FObjFetchParameters = new                     ParameterService.ParameterServiceSoapClient();

                DataSet dtSurnoc = new DataSet();

               dtSurnoc = FObjFetchParameters.GetSNo(24,1,3,5,12);

              }

            catch (Exception ex)

            {

                throw;

            }

        }

Social Media