Web Services: An Array variable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dominick Baier

    #1

    Web Services: An Array variable

    remember that with webservices you are sharing data - not type.

    Why do you use System.Array? Why not a string array or similar?

    Use a dotnet datatype thats serializes to XML - use only types that can be described by XSD. Have a look at the XmlSerializer attributes like XmlArray, XmlArrayType a.s.o.

    ---
    Dominick Baier - DevelopMentor


    nntp://news.microsoft. com/microsoft.publi c.dotnet.framew ork.webservices/<4D1159D2-01B6-4E7E-8790-32DC2C99FE0D@mi crosoft.com>

    hi,

    I have created a web service and in one of its web methods I use a public
    function which expects parameters of array type

    For Example:
    Public Function makeTable(ByVal myAr As Array, ByVal myDAr As Array, ByVal
    sqlStr As String) As String

    When I try to debug the error below occurs:

    "You must implement a default accessor on System.Array because it inherits
    from ICollection. "

    I made some changes in my code but didn't do anything. Can anyone suggest
    what I have to do in order to use my array variables?

    Thanks


    [microsoft.publi c.dotnet.framew ork.webservices]
Working...