调试 Web 服务方法
我有一个网络服务 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你的应用程序服务器是什么?您在服务中使用了哪种语言?通常大多数应用程序服务器都支持远程调试...如果是 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.
如果您只想调用 Web 服务并查看结果,您可以简单地使用 SoapUi
http://sourceforge.net/projects/soapui/files/soapui/4.0/
If you just want to invoke a web-service an view the result, you could simply use SoapUi
http://sourceforge.net/projects/soapui/files/soapui/4.0/
最简单的方法是使用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.