Axis 2 - 是否可以通过 Web 界面测试操作?

发布于 2024-09-30 23:31:12 字数 375 浏览 2 评论 0原文

我的问题的简短版本: 是否可以通过 Axis 2 Web 应用程序提供的网页测试 Web 服务?

更详细的信息:在 Axis 2 提供的网页(其中列出了所有服务,您可以查看 WSDL 并管理 Axis 2)中,是否有地方可以通过输入输入参数并查看 XML 来测试服务的操作返回的响应?在 .NET 中,您可以在 .asmx 页面上执行此操作,该页面列出了所有可用操作并允许您输入参数和查看 XML 响应。然而,在 Axis 2 中,我真正看到的只是列出的服务,单击它们可以查看 WSDL,但除此之外,我没有看到任何允许您在页面上进行测试的功能。这真的很方便。

前任。我有一项服务可以让我输入产品编号(作为 POST 参数)并返回这些产品的详细信息。有没有办法可以选择操作、输入发布数据、发布并查看回复?

Short version of my quesiton:
Is it possible to test a web service via the web page provided by the Axis 2 web application?

More detail: In the web page provided by Axis 2 (the one where all of your services are listed and you can view WSDLs and administer Axis 2), is there somewhere you can test operations for your service by entering input parameters and viewing the XML responses that are returned? In .NET, you can do this on .asmx pages that list all available operations and allow you to input parameters and view XML responses. However, in Axis 2, all I really see is the services listed, and clicking on them allows you to view the WSDL, but besides that, I don't see any functionality that would allow you to test right on the page. It would really just be convenient.

Ex. I have a service that lets me input product numbers (as POST parameters) and returns details of those products. Is there a way I can select the operation, enter the post data, post it, and view the response?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不喜欢何必死缠烂打 2024-10-07 23:31:12

对于网络服务测试 - 你提到了 axis2,所以我猜你谈论的是基于 SOAP 的服务 - 我通常依赖 soapUI

此外,我不认为 axis 2 Web 管理应用 是有意的支持功能性 Web 服务测试。

For webservice testing - you mention axis2, so I guess you talk about SOAP based services - I usually rely on soapUI.

In addition, I don't think that the axis 2 web admin app is intended to support functional webservice testing.

安穩 2024-10-07 23:31:12

除了按照 Andreas_D 的建议使用 SoapUI 之外,您还可以使用 Eclipse 通过使用请求数据调用 Web 服务来测试 Web 服务并查看其响应。

Eclipse EE 附带了一个名为 Web Service Explorer 的工具,您可以用于测试 Web 服务

如果可以访问服务的 WSDL,它会创建一个简单的 GUI 来调用 Web 服务的所有操作,并显示调用的结果。 GUI 中的source 链接还允许您直接查看 SOAP 源代码。

Axis 2 Web 应用程序提供的网页仅向您提供 Web 服务的详细信息,并不用于使用示例数据对其进行测试。

Besides using soapUI, as Andreas_D suggested, you can also use Eclipse to test the web service by calling it with request data and see its response.

Eclipse EE comes with a tool called Web Service Explorer which you can use to test a Web service.

Given access to the WSDL of the service, it creates a simple GUI to call all operations of the web service and also presents the result of the call. The source link in the GUI also allows you to view the SOAP source directly.

The web page provided by the Axis 2 web application only gives you details of the web service, its not meant for testing it with sample data.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文