通过 WSO2 ESB 访问 WSO2 数据服务服务 [英] Access WSO2 Data Services Service via WSO2 ESB
问题描述
我创建了一个接受 ProductID 值并返回数据的服务(产品).我有此服务的 SOAP 和 HTTP 请求和响应.我可以通过执行类似 h**p://localhost:9763/services/Products.HTTPEndpoint/ProductID/123456 之类的操作来访问它以返回数据.
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.
我怎样才能做同样的事情而不通过 ESB?我尝试设置一个简单的直通代理,但是当我使用TryIt"时,我只能选择mediate".
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.
有什么想法吗?
谢谢,贾里德
推荐答案
我最终能够做到这一点:
I ended up being able to do this:
WSO2 数据服务服务器服务:
WSO2 Data Services Server service:
http://localhost:9763/services/Products
WSO2 ESB 端点:
WSO2 ESB Endpoint:
Name: epProducts
Address: http://localhost:9763/services/Products.HTTPEndpoint
Format: GET
WSO2 ESB 代理服务:
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
发送 GET 请求到:
Send a GET request to:
http://localhost:9763/services/Products.HTTPEndpoint/ProductID/123456
这篇关于通过 WSO2 ESB 访问 WSO2 数据服务服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!