WCF loses value

I populate the MyType list with 20 elements and pass it as a parameter to the WCF service.

The only problem is that when it gets there, the list has no items.

My service method:

MyMethod(List<MyType> myList, string bla)

I call it this: from a Windows Forms application:

myService.MyMethod(myList.ToArray(), "bla"); // Here my list has 20 elements.

But when it gets into the WCF service, the array is empty. :(

Can someone help me understand why?

PS: My WCF service is a Windows Azure web role, but I don't think it changes anything in this cenario. Or that...?

+3
source share
2 answers

It was a problem with namespaces and links ...

Thanks guys.

+1
source

, , , . , Windows Azure .

+1

Source: https://habr.com/ru/post/1780040/


All Articles