Methods with Nullable Types not working in ASMX Web Service using GET
问题 I have an ASMX Web Service set up to use the HTTP GET method. Simple methods which take basic String and Int parameters are working ok, and I can call MyService.asmx/MethodName?Param=Value and get a response back in XML. However, when I have a method which has a nullable Int (i.e. int? ), I get this error: < Method Name > Web Service method name is not valid. The error message is confusing, as the method does exist, just not in the GET scope. I presume this is because a nullable type is too