Access WSO2 Data Services Service via WSO2 ESB

我是研究僧i 提交于 2020-01-02 05:20:48

问题


I have created a service (Products) which accepts a ProductID value and returns data. I have SOAP and HTTP requests and responses for this service. I can access this by doing something like h**p://localhost:9763/services/Products.HTTPEndpoint/ProductID/123456 to return data.

How can I do the same thing but go through the ESB? I've tried to set up a simple pass through proxy, but when I use the "TryIt" I only get "mediate" as a option.

Any ideas?

Thanks, Jared


回答1:


You should use an appropriate WDSDL as the publish WSDL of the proxy service to 'tryit' the proxy service.
So what you can do is, get the WSDL of the actual data service and use that as the publish wsdl of the proxy. Then you can use tryit to invoke the DS.




回答2:


I ended up being able to do this:

WSO2 Data Services Server service:

http://localhost:9763/services/Products

WSO2 ESB Endpoint:

Name: epProducts
Address: http://localhost:9763/services/Products.HTTPEndpoint
Format: GET

WSO2 ESB Proxy Service:

Service Name: ProductsProxy
Publishing WSDL: None
Define In Sequence:  None
Define Endpoint:  epProducts
Define Out Sequence: None
Define Fault Sequence: None

Send a GET request to:

http://localhost:9763/services/Products.HTTPEndpoint/ProductID/123456


来源:https://stackoverflow.com/questions/10179661/access-wso2-data-services-service-via-wso2-esb

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