Hello,
I am creating an API in WCF (.NET 4, C# ). I am taking a .NET List as input from client.
my only concern is that if my client is in a language other than .NET (like java), can i still accept List as an input and consume it as .net Lists? or i will have to parse java lists to .net lists? if i have to parse it to .net Lists then how i can do it?

I never tried with List, but i think it's best to use an defined array, like MyObject[]. This way when .NET receives the data request it will know how to parse it.

Even using List, if it's a simple type(int, string, bool e etc) i think it would not be a problem. But using complex types it may be.

Hope it helps.

you can use as Json it`s more over easy for you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.