Public Sub sendEmpValue(name As String, value As List(Of Integer))
Dim serviceObject As New Service.GetEmployeeClient
serviceObject.DoWork(name, value)** getting error at the value**
Sub DoWork(name As String, value As List(Of Integer)) Implements IGetEmployee.DoWork
DoWork method expects an
Integer() which is an array of integers.
Read more about arrays on the MSDN documentation.
According to this answer when using WCF a
List(Of T) is converted into an array on the clientside, which is why the
DoWork method wants an array instead of a
List(Of Integer) as you've specified. This behaviour can apparently be modified though.