创建Web服务以将Windows Phone应用程序连接到mysql [英] Creating a web service to connect a windows phone app to mysql

查看:64
本文介绍了创建Web服务以将Windows Phone应用程序连接到mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Php网站,其中包含在Apache Web服务器上创建的数据库。我想将数据从Windows Phone应用程序发送到此数据库。我开始知道我需要创建一个Web服务来实现手机应用程序和数据库之间的通信。我已经搜索了很多b $ b但是找不到关于如何创建这个Web服务并允许数据库和应用程序之间进行通信的正确教程或指南。任何人都可以帮我吗?

解决方案

你可以用PHP创建一个基于Rest的Web服务


http://www.9lessons.info/2012/05/create- restful-services-api-in-php.html


您可以使用WebClient和HttpWebRequest / HttpWebResponse类下载/上传数据。


http://www.dotnetcurry.com/showarticle.aspx?ID=501


I have created a Php website with database created on Apache web server. I want to send data from a windows phone application to this database. I came to know that I need to create a web service to enable communication between phone app and database. I've searched quite a lot but couldn't find a proper tutorial or guidelines about how to create this web service and allow communication between database and app. Can anyone please help me with it?

解决方案

You can create a Rest-based Web Service in PHP

http://www.9lessons.info/2012/05/create-restful-services-api-in-php.html

And you can use WebClient and HttpWebRequest/HttpWebResponse class to download/upload data.

http://www.dotnetcurry.com/showarticle.aspx?ID=501


这篇关于创建Web服务以将Windows Phone应用程序连接到mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆