I am using a asp.net WSE web service in my web application.
For some reason, some collections are in the form of an array.
i.e. I am doing:
M开发者_开发知识库yService.SomeObject so = new MyService.SomeObject();
so.SomeCollection = new SomeCollection[0];
Yet the developer of the service says he defined it as a List, not an array.
Is this common where the types don't match between the actual service and the client proxy?
What about enumerations, do they serialize/deserialize properly?
In the metadata (be is SOAP or MEX), they are just repeated elements. The proxy-generation tool can choose to interpret that in a variety of ways, and generally provide options to control this (in the advanced page in VS, IIRC - or at the command line).
Serialization should still be fine.
精彩评论