Wso2 如何测试已部署的服务端点?
我使用创建了一个简单的数据服务。Wso2 如何测试已部署的服务端点?,wso2,Wso2,我使用创建了一个简单的数据服务。 服务仪表板提供以下URL: 端点 local:///services/DataServiceSamples1/ 但是当我尝试使用它们时,我得到了以下错误 <soapenv:Reason xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Text xml:lang="en-US"> The endpoint reference (EPR) for t
服务仪表板提供以下URL: 端点
- local:///services/DataServiceSamples1/
<soapenv:Reason xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Text xml:lang="en-US">
The endpoint reference (EPR) for the Operation not found is /services/DataServiceSamples1/ and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.
</soapenv:Text>
</soapenv:Reason>
上面是我的wsdl文件的一部分。那么为什么它会给我几个端点呢?
如何测试这些url是否正常工作。无论如何,我使用Soapui测试服务。它正常工作。您可以通过从浏览器调用其wsdl文件来验证服务端点是否存在。要执行此操作,请转到/repository/conf/carbon.xml文件,并将以下条目更改为
<!-- If this parameter is set, the ?wsdl on an admin service will not give the admin service wsdl. -->
<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
假的
然后转到浏览器并输入。如果您在这里看到wsdl文件,则表示您的服务已部署并正在运行。然后,您可以从SoapUI或其他客户端向端点发送请求。如果您没有看到WSDL,则说明您的服务中存在一些错误,并且没有正确部署。您的问题与端点URI等无关。但是您需要正确设置WS操作以命中DS 您是否可以与我们共享或检查调用此DSS端点的ESB配置,是否将WS-action设置为要调用的DS的操作名称。 您必须正确安装有效负载。请使用DSS试用工具/DSS WSDL验证有效负载 i、 e
此答案中提到的参数的可能重复项仅适用于管理服务,对吗?数据服务不是一个管理服务,是吗?我使用WSO2 ESB尝试了这一点,并且我也能够使用它获得部署的代理服务wsdls。因此,这种配置似乎也适用于已部署的服务。
<!-- If this parameter is set, the ?wsdl on an admin service will not give the admin service wsdl. -->
<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>