简体   繁体   English

如何在Windows Phone 7应用程序中使用JSON-RPC(Web服务)?

[英]How to use JSON-RPC (web service) in windows phone 7 application?

I want to know how to use a Json web service in windows phone application. 我想知道如何在Windows Phone应用程序中使用Json Web服务。 I am aware that Jayrock has to be used, but I would like some examples. 我知道必须使用Jayrock,但我想举一些例子。 I want to call some methods in the webservice which is given to me in the form of http://"something"/service.json" Please help. 我想调用以http://“ something” /service.json“形式提供给我的Web服务中的一些方法,请帮忙。

I did something similar to this.. 我做了类似的事情。

http://www.silverlightshow.net/items/Consume-JSON-with-Windows-Phone-a-seamless-solution.aspx http://www.silverlightshow.net/items/Consume-JSON-with-Windows-Phone-a-seamless-solution.aspx

But my service was much simpler and did not need all the wcf stack, so I instead hosted it as an asp .net mvc page and render the page in json, instead of html. 但是我的服务要简单得多,不需要所有wcf堆栈,因此我将其托管为asp .net mvc页面,并以json而不是html呈现该页面。

You can then use json serializer to parse the data in C# 然后,您可以使用json序列化程序来解析C#中的数据

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

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