调试 Web 服务方法

发布于 2024-12-03 03:23:01 字数 80 浏览 0 评论 0原文

我有一个网络服务 URL。该 Web 服务部署在服务器中。我需要测试此 Web 服务中的单个方法。 为此需要采取哪些步骤?

谢谢。

I have a web service URL with me. This web service is deployed in a server. I need to test a single method in this web service.
What all are the steps to be done for this?

Thanks.

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

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

发布评论

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

评论(3

飘过的浮云 2024-12-10 03:23:01

你的应用程序服务器是什么?您在服务中使用了哪种语言?通常大多数应用程序服务器都支持远程调试...如果是 java,您需要以调试模式启动应用程序服务器,并且可以使用 Eclipse 或任何其他 IDE 通过远程调试附加代码。如果您使用 .NET,那么通过 Visual Studio - 您可以将代码附加到正在运行的进程。

What is your application server..? Which language you have implemented in your service? Usually most of the application servers support remote debugging... If it is java you need to start your application server in debug mode and can attach your code through remote debugging either using Eclipse or any other IDE. If you are using .NET then through Visual Studio - you can attach the code to the running process.

生生漫 2024-12-10 03:23:01

如果您只想调用 Web 服务并查看结果,您可以简单地使用 SoapUi

If you just want to invoke a web-service an view the result, you could simply use SoapUi

  • You have to download it :
    http://sourceforge.net/projects/soapui/files/soapui/4.0/
  • Create a new project and give the WSDL URL of your service (the WSDL could be retrieve by adding '?WSDL' to the URL)
  • A sample request for each operation have been generated, just replace the '?' by sample value in the request and run
嗳卜坏 2024-12-10 03:23:01

最简单的方法是使用soap UI。

另一种方法是使用某种工具生成客户端存根(例如,使用 Axis2,您可以使用 wsdl2java 工具)并调用服务。同样,这可以通过 tcpmon 来完成,以便查看请求和响应消息。

The easiest method is to use the soap UI.

The other method is to generate the client stub with some tool (eg. with Axis2 you can use wsdl2java tool) and invoke the service. Again this can be done through tcpmon in order to see the request and response messages.

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