WP7 consume a WCF Service

与世无争的帅哥 提交于 2019-12-08 04:31:55

问题


I have a WCF web service deployed on azure. When I consume it using WCFClientTest, I successfully get return data after invoking my methods. But when I try to consume it through WP7... it returns nulls (collections of objects are expected, either empty or filled with objects of course).

I've read over the internet that lot of people had such problems, but couldn't find a straight fix to this, I restarted Visual Studio to get rid of the well known warning related to the web service reference while developing for WP7 but it didn't help at all, and my code has no warnings left.

I guess it's a problem with serialization or maybe security... I really don't know

Did anybody run across such an issue already ? Any directions to solve it ?

PS: I deploy on emulator

Edit:

In order to back up my question, I'd like to let you know that I've just tried using a method that returns a simple string and this works. So the problem is with collections.

来源:https://stackoverflow.com/questions/4678619/wp7-consume-a-wcf-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!