Difference between Proxy Service and API Service in wso2 Esb

不打扰是莪最后的温柔 提交于 2020-01-22 15:28:52

问题


What is the difference between a Proxy service and API service in wso2esb?

To expose my service I can give proxy URL and API URL then in which scenario both differs? and in which scenario I can use proxy and in which I can use API?

Please help me in understanding..,


回答1:


An API has resources so it is suitable when you have to perform multiple operations like CRUD etc. then you can call particular resource which will be performing some particular operation.

A proxy service is suitable when you have to perform an isolated operation (single operation).

So, what you can do is, make an API for multiple operations and then create proxy services for each operation.

Moreover, API can be called as REST service and Proxy service is called as a soap service.




回答2:


Use a proxy service to expose a SOAP web service

You can consume JMS messages or files with VFS, but since ESB 4.9.0 you can use inbound endpoints for that purpose

Use API to expose a REST service



来源:https://stackoverflow.com/questions/37959251/difference-between-proxy-service-and-api-service-in-wso2-esb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!