简体   繁体   English

从Windows Azure Modile Service后端发送JSON的示例

[英]Example of send JSON from Windows Azure Modile Service backend

I searched example for follow situation but failed. 我搜索了跟踪情况的示例,但失败了。

I have: 我有:

  1. Windows Phone App Windows Phone应用
  2. Windows Azure Mobile Service with table Windows Azure移动服务与表
  3. Website with REST API (JSON) 具有REST API(JSON)的网站

Windows Phone App and Mobile Service - ToDoItem (example from Microsoft) Windows Phone应用程序和移动服务-ToDoItem(来自Microsoft的示例)

I need follow logic of work : if add in table the record, data of this record have to send to website in JSON (GET or POST) 我需要遵循以下工作逻辑如果在表中添加记录,则该记录的数据必须以JSON(GET或POST)发送到网站

Can anybody help me find a example or explain it? 有人可以帮我找一个例子或解释一下吗?

This is an example of consuming the web service using javascript. 这是使用javascript使用Web服务的示例。 https://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-how-to-use-client-library/##custom-api https://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-how-to-use-client-library/##custom-api

By default, web api returns json as the first choice of serializer anyway. 默认情况下,无论如何,Web api返回json作为序列化程序的首选。 So you don't really have to specify it. 因此,您实际上不必指定它。 This article describes it. 本文介绍了它。 http://www.asp.net/web-api/overview/formats-and-model-binding/json-and-xml-serialization http://www.asp.net/web-api/overview/formats-and-model-binding/json-and-xml-serialization

Mobile Service is just a web api hosted in cloud with some sugar coated magic to make things easier. 移动服务只是托管在云中的Web api,其中包含一些糖衣魔术,使事情变得更加轻松。

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

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