I get the following error \"Web Service method name is not valid\" when i try to call webmethod from javascript
System.InvalidOperationException: SaveBO
I had this issue because my soap method had a List<string>
parameter. Couldn't figure out a way to make it work with the array parameter; so just converted the parameter to a &
-delimited string (e.g. val1&val2&val3
) and converted the parameter to an array in the service method.
It was a silly mistake.
remove Static
keyword from method declaration.
[WebMethod]
public string SaveBOAT(string Pid)
{
SessionManager.MemberID = Pid;
return "";
}