开发者

When creating a WSE service, do all objects appear in the service proxy "properly"?

开发者 https://www.devze.com 2023-01-08 10:02 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消