简体   繁体   English

通过Windows Phone访问WCF服务

[英]Access WCF service through a Windows Phone

I am developing a Windows Phone Application and from this application I am accessing an SQL Azure database through a Silverlight-Enabled WCF service. 我正在开发一个Windows Phone应用程序,从这个应用程序我通过启用Silverlight的WCF服务访问SQL Azure数据库。 This works perfectly on the Windows Phone emulator. 这在Windows Phone模拟器上完美运行。 My question is: what will happen when I deploy the application and try to access the WCF service? 我的问题是:当我部署应用程序并尝试访问WCF服务时会发生什么? To test what I have done on a real Windows Phone, do I have to host the site (which includes the WCF service) 为了测试我在真正的Windows Phone上做了什么,我是否必须托管该站点(包括WCF服务)

If they are currently hosted on your local machine, then you can still access them by hooking your Windows Phone (must be developer unlocked) and testing your app through Visual Studio 如果它们当前托管在您的本地计算机上,那么您仍然可以通过挂钩Windows Phone(必须是开发人员已解锁)并通过Visual Studio测试您的应用程序来访问它们

However if you mean deploying to the MarketPlace then yes, you will need to have those services hosted so they can be used by other phones not connected to your local machine. 但是,如果您的意思是部署到MarketPlace,那么您需要托管这些服务,以便其他未连接到本地计算机的手机可以使用这些服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM