Java EE Web 服务,哪一个?
我想构建一个 Java EE 服务器,该服务器可以服务许多不同类型的客户端。其中大多数是移动客户端,但也可以是浏览器应用程序。
我想在 REST 和 SOAP Web 服务之间进行选择。你怎么认为?这种方法哪种更好?哪个更优化。如果你知道的话,我想看看优点/缺点。
您对此有何看法?
I would like to build a Java EE server, that server many different kind of clients. Most of them are mobile clients, but there also can be a browser application.
I would like to choose between REST and SOAP web services. What do you think? Which is better for this approach? Which is more optimal. I would like to see pros/cons if you know.
What do you think about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会使用 SOAP,因为 REST 只能通过 HTTP 工作,而 SOAP 可以使用 HTTP、TCP、命名管道、SMTP、MSMQ 等。
I would use SOAP, because REST works only over HTTP, while SOAP can use HTTP,TCP, Named pipes, SMTP, MSMQ etc.