Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ,
I want to create a web services (asmx) and Passing multiple parameters and may be vary every time with different datatypes. I need a proper method how I can create a web service which convert that parameters with proper data type and I can use that parameter values In some purpose.

Is It possible and If how ?? Kindly help me.


Regards,

Mayank Jain
Posted

1 solution

Webservice methods can accept multiple parameters. Simply define WebMethod that accepts multiple parameters just like a normal method in your C# code behind.

C#
[WebMethod]
public void SampleMethod(string Param1, int param2, double param3, string[] arrayParam)
{
  // sample
}
 
Share this answer
 
Comments
jainmayank08 3-Jul-12 9:58am    
I need solution like generics.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900