简体   繁体   English

Windows Mobile客户端和Winforms应用程序之间的通信抛出WCF

[英]communication between windows mobile client and winforms application throw wcf

i created a wcf service to receive gps coordinates from windows mobile 6 client and save them into data base.Every thing works fine but i'm trying to send some configuration from a winforms application to the windows mobile client. 我创建了一个wcf服务,以从Windows Mobile 6客户端接收gps坐标并将其保存到数据库中。一切正常,但是我试图将一些配置从Winforms应用程序发送到Windows Mobile客户端。 Does any one have any idea? 有人有什么主意吗?

The WCF Service needs to be on a running Web Service (localhost is OK). WCF服务必须位于正在运行的Web服务上(本地主机可以)。

Once the WCF Service is created and running on your PC, Right-Click and add a Web Reference to your project. 一旦WCF服务创建并在您的PC上运行,请右键单击并将Web引用添加到您的项目。

网络参考

Once that is done, create a client instance of your service so you can call the public methods you created in it. 完成后,创建服务的客户端实例,以便可以调用在其中创建的公共方法。

The PC running the Web Service must be able to "see" your device. 运行Web服务的PC必须能够“看到”您的设备。 See if you can PING your device: 查看是否可以Ping您的设备:

ping

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

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