Eclipse WSDL 生成器(来自 java 类)?

发布于 2024-12-09 14:49:59 字数 114 浏览 1 评论 0原文

我想生成与 Java 类兼容的 WSDL。在这个阶段,我不想将其放在网上,只需拥有 wsdl(以便与其他人讨论)并验证生成的文件。

我正在使用 Eclipse,因此我更喜欢任何已与其集成的解决方案。

I want to generate WSDL compliant with Java classes. At this phase I don't want to put it online, just have the wsdl (in order to discuss it with someone else) and validate the generated file.

I'm using Eclipse, so I would prefer any solution that's already integrated with it.

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

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

发布评论

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

评论(2

樱娆 2024-12-16 14:49:59

从 java 角度的 eclipse 中:

  1. 右键单击要用作服务实现的 Java 类
  2. 选择 Web Services ->创建 Web 服务
  3. Web 服务类型应该是“Botton up Java bean Web Service”

这将为您生成一个 WSDL 文件。

From eclipse in the java perspective:

  1. Right click on the Java class you want to use as your service implementation
  2. Select Web Services -> Create Web Service
  3. Web service type should be "Botton up Java bean Web Service"

This will generate a WSDL file for you.

迷乱花海 2024-12-16 14:49:59

您还可以使用任何服务器(例如 Tomcat)在 localhost 发布服务,然后使用浏览器在地址栏中写入

http://localhost:<server_port>/path/to/your/service?wsdl

如果服务配置正确,您应该会看到生成的 wsdl。然后,您可以在任何文本编辑器中复制/粘贴并将其另存为 myService.wsdl

希望有帮助

Also you can publish the service at localhost with any server (Tomcat, for instance) and then with your browser in the address bar write

http://localhost:<server_port>/path/to/your/service?wsdl

If the service is correctly configured, you should see the generated wsdl. Then you can copy/paste in any text editor and save it as myService.wsdl.

Hope that helps

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