annik

annik

  • NA
  • 4
  • 0

Trying to pass a paramarray of arrays to a webservice.

Mar 15 2007 12:54 PM

I have no problem passing a paramarray of arrays to a local function but when I make it a web service it does not pass anything. Any ideas why? Is this not supported?

Here is the code:

Public Function FindDocs(ByVal ParamArray param As String()()()) As String()()
{ .. do stuff ..}
End function

Calling method:
        'declaring an arraya of 2 paramater field / value pairs
        Dim param1(0)() As String

        param1(0) = New String() {"Status Inactive", 0}
       
        Dim param2(0)() As String
        param2(0) = New String() {"Number", "25410"}
       
        Dim param3(1)() As String
        param3(0) = New String() {"this", "type1"}
        param3(1) = New String() {"that", "type2"}

        'declaring results array
        Dim results()() As String

        'Call Search Lease Web Service does not pass or passes a null array
        'search is a referance to my web service.
        results = search.FindDocs(param1, param2, param3)

        'Call local function works fine
        'results = FindDocs(param1, param2, param3)


Thanks in Adv.

 


Answers (1)