Web Services: An Array variable

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Dominick Baier (dotnet_at_leastprivilege.com)
Date: 10/07/04


To: microsoft.public.dotnet.framework.webservices
Date: Thu, 07 Oct 2004 12:57:03 -0700

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
 http://www.leastprivilege.com

   nntp://news.microsoft.com/microsoft.public.dotnet.framework.webservices/<4D1159D2-01B6-4E7E-8790-32DC2C99FE0D@microsoft.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.public.dotnet.framework.webservices]



Relevant Pages

  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)
  • Re: passing a string to a dll
    ... Joe, I really appreciate you taking the time to demonstrate this. ... sure how I would implement indexing it for random alphanumeric codes. ... I might handle the array. ... I actually have been wondering if I could use a second string ...
    (microsoft.public.vc.mfc)
  • Re: passing a string to a dll
    ... I might handle the array. ... I actually have been wondering if I could use a second string ... look at insertion cost, organization cost, and search cost. ...
    (microsoft.public.vc.mfc)
  • RE: Structure conversion from C++ to VB-2008?
    ... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ...
    (microsoft.public.dotnet.languages.vb)
  • Structure conversion from C++ to VB-2008?
    ... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ...
    (microsoft.public.dotnet.languages.vb)