0

I have an object that I serialize and pass to a web service, it has two enums. Should I look to remove these enums if I want developers of other platforms to create and consume this data? Or can other platforms handle serialized .net types?

My current platform is .net, I will be looking to expand the service to iOS and Android.

4

1 に答える 1

1

You should not send an enum over a web service unless you have controll over server and client and they are on the same platform.

The ability to send an enum over a WCF web service was first available in .net 4.0. This will not work with .net 3.5.

Your best bet cross platform is to use REST based services.

于 2012-05-20T18:55:22.117 に答える