当我 http://my.domain.com:9763/services/Test_DataService.SOAP12Endpoint 访问此 URL 时,我收到了以下消息:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<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/User_DataService.SOAP12Endpoint and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.
</soapenv:Text>
</soapenv:Reason>
我在亚马逊上使用Oracle RDS测试了WSO2 DSS 2.7和3本地和远程(在所有情况下都存在相同的错误)。
发生了什么事情?
您似乎以错误的方式访问了该服务。
您可能知道,WSO2 数据服务服务器使用 Axis2 服务将数据服务公开为 Web 服务。
因此,您应该知道如何从客户端调用 Web (Axis2) 服务。
成功创建数据服务后,您应该能够在服务列表中看到相关服务。然后,您可以使用"服务仪表板"查看服务的 WSDL 并管理 QoS
来自 Axis2 的以下错误通常表示您未正确调用 Web 服务。
未找到操作的终结点引用 (EPR) 是/services/User_DataService.SOAP12Endpoint 和 WSA 操作 = null。如果以前可以访问此 EPR,请与服务器管理员联系。
您应该能够从服务仪表板的内置试用功能测试服务。 soapUI 也是测试 Web 服务的好工具。您只需将 WSDL 指向 soapUI 中并创建一个项目即可。然后,可以在 soapUI 项目下手动调用列出的服务操作。
我希望这有帮助!