1

我正在使用 wso2 教程,此时https://docs.wso2.com/display/ESB500/Sending+a+Simple+Message#SendingaSimpleMessage-uriTemplate 我有 ESB 的 Web 界面在 localhost 上运行:9443/carbon 我已经创建并打包了 carbon 应用程序,如“发送简单消息”文档中所述。“API”页面说我在 http://localhost:8280/healthcare有一个 API 资源, 所以我试图卷曲它,但它失败了:

[bajal@bajal:~/ESBTOOL/eclipse]# curl "http://localhost:8280/healthcare/querydoctor/surgery"
curl: (7) Failed to connect to 127.0.0.1 port 8280: Connection refused

netstat 向我显示 java-app(esb 本身)没有可能看起来像 8280 的开放端口。

我很困惑。在 ESB 文档中没有任何关于它的内容。请帮我通过教程:)

4

1 回答 1

0

WSO2 ESB 使用 Passthrough Listener 侦听端口 8280 上的 HTTP 流量。此配置位于 ESB 内的 axis2.xml 文件中。我现在不记得确切的位置,因为现在我不太喜欢 WSO2。那里有传输侦听器和发送器配置。我觉得应该没问题。您能否按如下方式更改您的 curl 请求 [1] 并再次尝试。或者在浏览器的地址栏中点击获取 url [2] 并查看。

[1] curl -v http://localhost:8280/healthcare/querydoctor/surgery

[2] http://localhost:8280/healthcare/querydoctor/surgery

于 2016-12-12T07:28:55.620 回答