How to port C# Console application to Windows Phone

回眸只為那壹抹淺笑 提交于 2019-12-24 10:56:26

问题


Basically, the console application consumes a web service, and I want to do the same with windows phone application. I know that things work differently with WP7 with respect to web services, and I would like to know if this is possible.

The console version uses the namespace System.Web.Services which is not allowed for the wp7. How else could I achieve the same?


回答1:


You have to write a WCF service and using that service you can execute all the functionality that you want to do via console application.

Then refer that WCF service into your wp7 app and you are done. There are lot of help available online, here are 2. Hope this will help you.

Link1

Link2



来源:https://stackoverflow.com/questions/10003634/how-to-port-c-sharp-console-application-to-windows-phone

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