Creating a webservice in ASP.net that accepts an array
Posted on 2007-08-08
Im trying to create a method for a web service that accepts an array parameter. However I get the following error when trying to run the web service:
You must implement a default accessor on System.Array because it inherits from ICollection.
My code so far is:
Public Class TravelQuote
Private _superPrice As Decimal = 0
Public Function GetQuote(ByVal product As String, ByVal destination As String, ByVal grouptype As String, ByVal duration As String, ByVal ages As Array) As String
How do I fix the service to allow the passing of an array?