Eclipse 中 Axis2 Web 服务的 JSP 客户端
我是 Web 服务新手,并已成功将 Axis1 Web 服务转换为 Axis2。我可以使用 Web Service Explorer 和 Eclipse 从中获取数据。我使用的是 Eclipse 3.6.1、Tomcat 5.5 和 Windows XP。问题是我缺少用于测试的 JSP 客户端。
当您使用 Eclipse 和 Axis 1 生成 Web 服务时,您将获得通用的 3 框架 JSP 测试客户端,其中方法在左侧,输入和结果在右侧。 Axis 2 似乎无法实现这种情况。我尝试过 Eclipse 中的动态 Web 项目、Web 服务、Web 服务客户端和 Axis2 CodeGen 向导的各种组合,但我得到的只是 xxxCallbackHandler.java 和 xxxStub .java。我可以使用 Web Service Explorer 进行测试,但我需要 JSP 客户端,因为我们的测试人员不是开发人员,也没有 Eclipse。
我尝试从旧的 Axis 1 服务转换 JSP 测试客户端。这并不顺利,因为有很多对 org.apache.axis 内容的引用,这些内容不属于 Axis 2(或者至少重新组织到我找不到它的程度)。
关于如何生成 JSP 客户端的任何建议,或者,如果我需要构建一个,也许是一个示例?我在 Google 上搜索过,每次搜索 jsp、客户端、webservice 和 eclipse 时,所有结果都返回紫色。以前肯定有人遇到过这个问题...
I am new to web services and have managed to convert an Axis1 web service to Axis2. I can get data back from it using the Web Service Explorer with Eclipse. I am using Eclipse 3.6.1, Tomcat 5.5, and Windows XP. Problem is I am missing the JSP client to test with.
When you generate a web service using Eclipse and Axis 1, you get the generic 3-frame JSP test client with the methods on the left, input and results on the right. Can't seem to get this to happen with Axis 2. I have tried the Dynamic Web Project, Web Service, Web Service Client, and Axis2 CodeGen wizards in Eclipse, in various combinations, and all I get is a xxxCallbackHandler.java and xxxStub.java. I am able to test using the Web Service Explorer, but I need the JSP client because we have folks doing testing who aren't developers and don't have Eclipse.
I tried converting the JSP test client from the old Axis 1 service. This didn't go well because there are lots of references to org.apache.axis stuff that isn't part of Axis 2 (or at least reorganized to the point I couldn't find it).
Any suggestions on how to get a JSP client to generate or, if I need to build one, maybe an example? I have Googled to the point where every search I do for jsp, client, webservice, and eclipse, all the results come back purple. Somebody's got to have had this problem before...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您需要一些 UI 工具进行测试,我不一定需要 Axis 生成的 JSP,但可以使用一些工具,例如 SoapUI。
这是他们如何使用 SoapUI 进行功能测试的指南:http://www.soapui .org/Getting-Started/function-testing.html
If you need some UI tool for testing, I do not necessarily need JSP generated by Axis but can use some tools like SoapUI.
This is their guide how to do functional testing with SoapUI: http://www.soapui.org/Getting-Started/functional-testing.html
我在 Win 2003 服务器上使用 Eclipse Helios 和 Indigo 时遇到了同样的问题。该问题似乎是一个错误,请参见此处:https://bugs.eclipse。 org/bugs/show_bug.cgi?id=341525。
我使用 Web Services>Create Client 向导来进行测试,方法是让 Eclipse 使用向导末尾自动生成的 JSP 来测试客户端。
I came across the same problem using Eclipse Helios and Indigo on a Win 2003 server. The issue seems to be a bug, see here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=341525.
I am using the Web Services>Create Client wizard to do my testing by letting Eclipse test the client with it's automatically generated JSPs at the end of the wizard.