开发者

WCF Strong Typed Collections corrupted name on client

I have an existing web service (ASMX) which exposes a service FooService with a method called SelectPaged. This method returns a PagedList<FooDTO>. In ASMX this is converted to a PagedListOfFooDTO and that works fine.

However now I have moved to WCF (in fact exposing both ASMX and WCF) and my PagedListOfFooDTO is getting corrupted somewhere. If I add a wcf service reference and an asmx web reference to a client app and look at the service proxy in the client through the object browser, I see asmx has proxied a type called PagedListOfFooDTO. But doing the same thing for the WC开发者_StackOverflow中文版F proxy in the object browser shows a type called PagedListOfxhHzuSy2. Something is obviously going wrong when WCF is creating the proxy for this collection type. Has anyone seen this behaviour before. FooDTO is decorated with [DataContract] and [DataMember] appropriately.

Many thanks


You should have a look there : http://flylib.com/books/en/2.713.1.36/1/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜