Is it possible to pass a nullable parameter to a webservice ?
I tried with this method :
[WebMethod]
public Response<bool> IsAColor(bool? isRed, bool? isYellow, bool? isBlue, bool? isBlack)
{
...
}
And i get this error : System.FormatException: Value ‘null’ cannot be converted to type ‘Boolean’.
Thanks !
After showing the way you are invoking your web service in SoapUI the problem is the following line:
That’s invalid boolean value. Remove this tag completely if you want to pass null to the
isRedparameter.Like this: