与 WPF 的 REST 通信
我正在尝试编写一个帮助台应用程序。
我面临的问题是如何在 REST 服务和我的应用程序之间建立类似聊天的通信。我也很困惑,也是菜鸟。
我所知道的只是获取 XML 的 GET(URI) 和 POST(URI) 方法。
谁能引导我朝正确的方向前进?
I am trying to write a Help Desk Application.
The problem I am facing is how to put up a chat like communication between the REST service and my application. I am confused and a rookie as well.
All I know is GET(URI) and POST(URI) methods from which I get the XML.
Can anyone guide me in the right direction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
REST 可能不是构建聊天应用程序的最佳架构风格。您应该查看 XMPP 和 AMQP 等协议。他们更适合这种双向沟通模式。
REST is probably not the best architectural style to build a chat application. You should look at protocols like XMPP and AMQP. They are much more suited to this two-way communication model.
您只需要在 C#/.NET 中编写 REST 客户端
< strong>WPF与您的问题无关。 post/get uri 将为您提供需要呈现的数据。它的呈现方式是您使用 WPF 处理的内容,但 REST 部分本身独立于任何语言/平台。
You simply need to write a REST client in C#/.NET
WPF has nothing to do with your question. The post/get uri's will get you the data that needs to be presented. How it is presented is what you deal with using WPF, but the REST part itself is independent of any language/platform.