I've defined the following web method:
public string GetMatchingCompanies(string term, int companyPickerMode, int? officeId, int? proposalId)
{
// ...
}
As you can see, the last two arguments are nullable. The idea is that these arguments are optional. They will be null if they are not specified.
However, when my AJAX code calls this method without supplying one of these arguments, I get the following error.
Invalid web service call, missing value for parameter: 'officeId'.
This is unexpected. Isn't there a way to make these parameters optional?