这个 WSO2 ESB 回显端点究竟是什么?
What exactly does this WSO2 ESB echo endpoint?
我是 WSO2 的新手,我对我正在从事的 ESB 项目有以下疑问。
在这个 ESB 应用程序中,我正在向 命名端点 中介发送消息,如下所示:
<send>
<endpoint key="echoEndpoint"/>
</send>
这是我项目中相关echoEndpoint.xml文件的内容:
<?xml version="1.0" encoding="UTF-8"?>
<endpoint name="echoEndpoint" xmlns="http://ws.apache.org/ns/synapse">
<address format="soap11" statistics="enable" trace="enable" uri="http://localhost:8280/services/echo"/>
</endpoint>
那么这个端点到底是做什么用的呢? http://localhost:8280/services/echo 类似于 WSO2 本机提供的预定义内嵌点?或者什么?
这是一项默认情况下已在您 运行 ESB 中显示的服务。 Echo.aar 位于路径 repository\deployment\server\axis2services 中。而wsdl你可以看到https://localhost:your_Port/services/echo?wsdl
echo 服务默认包含在 esb/ei 中。您可以在 Carbon Panel -> Main -> Manage -> Services 中看到它。您可以在那里通过 "Try It" 功能对其进行测试。它有几个方法:
- echoInt 已扩展以获取整数作为参数并返回相同的整数值
- echoString - 预期获取字符串值作为参数并返回相同的值
- echoOMElement - 收到 XML 作为参数并返回相同的 XML
和其他一些方法。总体思路 - 此服务返回与接收到的值相同的值。
此服务有助于测试。
我是 WSO2 的新手,我对我正在从事的 ESB 项目有以下疑问。
在这个 ESB 应用程序中,我正在向 命名端点 中介发送消息,如下所示:
<send>
<endpoint key="echoEndpoint"/>
</send>
这是我项目中相关echoEndpoint.xml文件的内容:
<?xml version="1.0" encoding="UTF-8"?>
<endpoint name="echoEndpoint" xmlns="http://ws.apache.org/ns/synapse">
<address format="soap11" statistics="enable" trace="enable" uri="http://localhost:8280/services/echo"/>
</endpoint>
那么这个端点到底是做什么用的呢? http://localhost:8280/services/echo 类似于 WSO2 本机提供的预定义内嵌点?或者什么?
这是一项默认情况下已在您 运行 ESB 中显示的服务。 Echo.aar 位于路径 repository\deployment\server\axis2services 中。而wsdl你可以看到https://localhost:your_Port/services/echo?wsdl
echo 服务默认包含在 esb/ei 中。您可以在 Carbon Panel -> Main -> Manage -> Services 中看到它。您可以在那里通过 "Try It" 功能对其进行测试。它有几个方法:
- echoInt 已扩展以获取整数作为参数并返回相同的整数值
- echoString - 预期获取字符串值作为参数并返回相同的值
- echoOMElement - 收到 XML 作为参数并返回相同的 XML
和其他一些方法。总体思路 - 此服务返回与接收到的值相同的值。
此服务有助于测试。