Java Web 服务生产者和消费者之间有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24010838/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the difference between web service producer and consumer?
提问by
I am used to the terms Clientand Service(or Server) in web service.
我习惯了 Web 服务中的客户端和服务(或服务器)这两个术语。
Could you confirm me please which one it is web service Producerand Consumer?
你能确认我是网络服务生产者和消费者哪一个吗?
And would you tell me why having 2 terms for the same meaning? I don't understand what my colleagues complain that the terms client/server causes confusion.
你能告诉我为什么有两个相同含义的术语吗?我不明白我的同事抱怨客户端/服务器这两个术语会造成什么混乱。
Thank you.
谢谢你。
采纳答案by lpratlong
Client => Consumer: a client is the one who consumes.
客户 => 消费者:客户是消费的人。
Server => Producer: the one who produces something to the client.
Server => Producer:向客户端生产某些东西的人。
Client / Serveris often used in architectural concepts, so it does not describe the WS itself, but the architectural pattern between the one on which you connect and the one who connect. Consumer/Produceris more understandable since it describes the service architectural pattern. You have a part who gives a service, and an other part who uses it.
Client/Server经常用于架构概念,因此它不描述 WS 本身,而是描述连接者和连接者之间的架构模式。 消费者/生产者更易于理解,因为它描述了服务架构模式。你有一部分提供服务,另一部分使用它。
So Client / Server is more generical. Consumer / Producer is SOA specific.
所以客户端/服务器更通用。消费者/生产者是 SOA 特定的。
回答by Deep Shah
Even Though this question is off-topic...
即使这个问题是题外话......
U should know that:
你应该知道:
Client=> Consumer : as it consumes the service..
客户端=> 消费者:因为它使用服务..
Server=> Producer : as it produces the service data for consumer..
服务器=> 生产者:因为它为消费者生产服务数据..
And we have 2 words one for naive and one for technical user...
我们有两个词,一个是天真,一个是技术用户......
Hope my answer clears you...
希望我的回答能让你明白...
Many thanks,...
非常感谢,...
回答by rachana
Web Services for Remote Portlets(WSRP)
introduces the concepts of Producersand Consumers.By using WSRP, you can aggregate application functionality by integrating WSRP-compliant Producers into WebLogic Portal as a Consumer. Your end users thus will be able to interface with Consumers to view the integrated applications.
Web Services for Remote Portlets(WSRP)
介绍了生产者和消费者的概念。通过使用 WSRP,您可以通过将符合 WSRP 的生产者作为消费者集成到 WebLogic Portal 中来聚合应用程序功能。因此,您的最终用户将能够与消费者交互以查看集成的应用程序。
Fig .Web Services Between Producer and Consumer
图 生产者和消费者之间的网络服务
For more detail see thislink.
有关更多详细信息,请参阅此链接。