如何使用wsdl2java创建Java代码?
我有一个 WSDL 文件,使用该文件我使用 axis2-eclipse-codegen-plugin-1.5.4 和 Axis 2 在 JAVA 中生成了服务器端类服务插件。这些类已创建,但我不知道如何使用这些类,而且我无法弄清楚所有这些类中的哪个是主类。它生成了许多我无法理解的其他方法。
现在,我必须修改这些类,以便服务在发布时可以将虚拟数据发送到客户端(我必须输入业务逻辑)。我无法这样做。任何机构都可以提供帮助/任何可以提供帮助的教程吗?
I have a WSDL file using which I have generated server side classes in JAVA using axis2-eclipse-codegen-plugin-1.5.4 and Axis 2 Service plugin. The classes are created but I don't know how to use those classes and I cann't figure out which from all those classes is the main class. It has generated many other methods which I m unable to understand.
Now , I have to modify those classes for so that the service, when published, can send dummy data to client(I have to enter business logic). I am unable to do so. Can any body help/ any tutorials which can help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以从此Axis2教程和文章开始
You can start from this Axis2 tutorials and articles
如果您的设置支持它,那么从 ejb3 开始,编写基本 bean 并让服务器即时生成 wsdl 可能会更容易。我用 glassfish3 做了这个,效果非常好。
If your setup will support it, starting with ejb3, writing basic beans and letting the server generate the wsdl on the fly might be easier. I've done this with glassfish3 and it worked really well.
查看本教程:使用 Apache Axis2 Eclipse 插件开发 Web 服务。它使用旧版本的 Axis2 Eclipse 插件(当您使用 1.5.4 时为 1.3),但希望应用相同的步骤,或者您可以根据旧教程找出它们。
Check out this tutorial: Developing Web Services Using Apache Axis2 Eclipse Plugins. It is using an older version of the Axis2 Eclipse Plugin (1.3 when you are using 1.5.4), but hopefully the same steps apply, or you can figure them out based on the old tutorial.