简体   繁体   English

使用JSON数组在Windows Phone 7,MYSQL数据库和PHP之间进行通信?

[英]Communication between Windows-phone-7, MYSQL-database and PHP, using JSON-array?

I'd like to have a simple connection between my MYSQL-database using PHP and JSON-arrays. 我想在使用PHP的MYSQL数据库与JSON数组之间建立简单的连接。 I want to both send and receive data to database by using the Phone-7 app. 我想使用Phone-7应用程序向数据库发送和接收数据。

Anyone who has a good solution for using this type of communication for building a Phone7 application? 有使用此类型的通信来构建Phone7应用程序的好的解决方案的人吗? I know how to do this in Android, but i don't know if it's possible to do the same using Phone7 developer SDK (Visual Studio, Express for Windows Phone). 我知道如何在Android中执行此操作,但我不知道是否可以使用Phone7开发人员SDK(Visual Studio,Windows Phone Express)执行相同操作。

I will program in Visual C#, Windows Phone Application. 我将在Windows Phone应用程序Visual C#中进行编程。 If you have any solutions, please show me both Visual C#, PHP and JSON snippets! 如果您有任何解决方案,请同时展示Visual C#,PHP和JSON代码段!

I would look into using RestSharp for the communication. 我会考虑使用RestSharp进行通信。 Should be easy enough for you to write a C# API for your service with this. 应该很容易为您编写一个用于您的服务的C#API。

Your question is somewhat vague. 您的问题有些含糊。 I mean, Java and C# aren't that different when it comes to REST requestions, and parsing JSON. 我的意思是,在REST请求和解析JSON方面,Java和C#并没有什么不同。 It's something you have libraries for in both languages, and besides that you just create the entities you wish to (de)serialize to. 您拥有两种语言的库,此外,您还创建了想要(反)序列化的实体。

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

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