954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cross programming language problem

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?

nice_candy
Newbie Poster
19 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

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.

AleMonteiro
Junior Poster
164 posts since Aug 2010
Reputation Points: 15
Solved Threads: 30
 

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

mani-hellboy
Junior Poster in Training
69 posts since Feb 2012
Reputation Points: 0
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: