Passing string array to web service

Discussion in 'ASP .Net' started by kpg, Oct 6, 2010.

  1. kpg

    kpg Guest

    I have a web service like this:

    <WebMethod()> _
    Public Function PassArray(ByVal attachments() As String) As Boolean

    I call it like this:

    Dim myArray(5) As String
    ....init array
    ws.PassArrayAsync(myArray)

    I get:

    Value of type '1-dimensional string' cannot be converted to 'ArrayOfString'

    How can I pass a string array to a webservice?

    thx
    kpg
     
    kpg, Oct 6, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. carmelo
    Replies:
    1
    Views:
    4,829
    javaSven
    Dec 15, 2009
  2. Ashok Subramanian

    Passing a Large String as a parameter to a web service

    Ashok Subramanian, Nov 6, 2003, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    179
    richlm
    Nov 9, 2003
  3. Replies:
    0
    Views:
    112
  4. BillGatesFan

    Passing an array of images to a Web Service. Can this be done?

    BillGatesFan, Nov 4, 2007, in forum: ASP .Net Web Services
    Replies:
    6
    Views:
    224
    John Saunders [MVP]
    Nov 12, 2007
  5. Leo Violette
    Replies:
    0
    Views:
    1,055
    Leo Violette
    Apr 17, 2009
Loading...

Share This Page