C# Web 服务响应 XML 负载
我尝试构建一个服务,该服务使用 C# 中的 XML 文档响应来自应用程序的 XML 请求。
创建接收参数的 asmx 服务后,我发现应用程序(这是一个黑匣子,我现在只知道发送的数据格式和需要接收的数据)正在发送 XML 有效负载。
谷歌只是给我提示,我不确定应该如何实施该服务。听起来我应该创建一个 Restful 服务吗? XML 有效负载是否作为流而不是参数(看起来是这样)传递?
I trying to build a service that responds to an XML request from an application with an XML document in C#.
After creating an asmx service that took in parameters I found out that the application (which is a black box and I only now the format of the data sent and what needs to be received) is sending an XML Payload.
Google is only giving me hints and I'm not sure how I should implement the service. Does it sound like I should create a ReSTful service? Does an XML Payload get delivered as a stream rather than parameters as seems to be the case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会使用 WCF 来构建解决方案;请查看 MSDN 上的这篇文章作为起点。
I would build the solution using WCF instead; take a look at this article on MSDN as a starting point.