ArrayOfStrings in Web Service Consumer

Hello,

I have created a lotus script Web Service Consumer and are calling it from a lotus script agent. One of the functions that i was calling had the argument ArrayOfString_n1. That is actually a class that notes created when i imported the WSDL file.

Class ArrayOfString_n1 As XSD_ANYTYPE

    Public string() As XSD_STRING



    Sub NEW

    End Sub

End Class

No matter what i tried i could not figure out how to use it… i tried everything. I search on the net but i didn’t find anything. So i started to create a question here on the forum to ask for help and when i was writing what i had tested i found one more thing to test… the most obvious thing. The problem was that when you use the ArrayOfString_n1 you get 2 functions in the typeahead… and i got stuck on those two.

Anyway, since i was too stupid to get it to work directly i guess there are at least one more in the universe with the same problem so i will tell you what to do :smiley:

Dim attributes As New ArrayOfString_n1

ReDim attributes.string( 0)

Dim tmpValue As New Xsd_string

tmpValue.Setvaluefromstring( “id”)

Set attributes.string( 0) = tmpValue

I hope you get the picture… if not… hmmm… read again :smiley: