How do I pass a collection via webservices? This
post shows how to pass an object (a single product) via webservices, however, I would like to pass a collection of products.
I tried the following, but get an error ("value of type bvc5.product cannot be converted to system.collections.objectmodel.collection(of bvc5.product)"
), on the highlighted line.
Module Module1
Sub Main()
Dim service As New bvc5.WebServices3
Dim token As bvc5.AuthenticationToken
token = service.Login("admin", "password")
If token.TokenRejected Then
Console.WriteLine("You are not authorized to use BVC5 web services.")
Exit Sub
End If
Dim productList As New System.Collections.ObjectModel.Collection(Of bvc5.product)
[color=blue>
][/color] If token.TokenRejected Then
Console.WriteLine("You are not authorized to access the Catalog.")
Exit Sub
End If
' do some stuff....
End Sub
End Module
TIA.