using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace WebApplication1
{
///
/// Summary description for WebService1
///
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class WebService1 : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld(int rollno,params string[] fullname)
{
return rollno +"and"+fullname[0]+fullname[1]+fullname[2];
}
}
}
if i use int,string firstname,string middlename,string lastname, i am able to test in browser. but if i give like below
[WebMethod]
public string HelloWorld(int rollno,params string[] fullname)
{
return rollno +"and"+fullname[0]+fullname[1]+fullname[2];
}
}
when i click , helloworld, i am getting message like,
The test form is only available for methods with primitive types as parameters.
i could understood we can test with primitive type only such as int,string,bool.
is there any way to achieve my function to test in browser without consuming from another application?
so that i can debug and able to find any mistake inside the webserive method?