简体   繁体   中英

What is the difference between web service producer and consumer?

I am used to the terms Client and Service (or Server) in web service.

Could you confirm me please which one it is web service Producer and 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.

Client => Consumer : a client is the one who consumes.

Server => Producer : the one who produces something to the client.

Client / Server is 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/Producer is more understandable since it describes the service architectural pattern. You have a part who gives a service, and an other part who uses it.

So Client / Server is more generical. Consumer / Producer is SOA specific.

Web Services for Remote Portlets(WSRP) introduces the concepts of Producers and 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.

Fig .Web Services Between Producer and Consumer 在此输入图像描述

For more detail see this link.

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,...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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