简体   繁体   English

如何为 Eclipse 使用 Axis2 代码生成器?

[英]How to use Axis2 Code Generator for Eclipse?

I installed the Axis2 Code Generator for Eclipse, and am trying to create a Web Service Client.我为 Eclipse 安装了 Axis2 代码生成器,并尝试创建 Web 服务客户端。

Here's what I'm filling out in the dialog:这是我在对话框中填写的内容:

在此处输入图像描述

When I try to submit this, I get an error:当我尝试提交时,我收到一个错误:

在此处输入图像描述

I only get this error if I check "Create a jar file of codegen result project and add to resulted projected lib folder (...)".如果我检查“创建 codegen 结果项目的 jar 文件并添加到生成的投影 lib 文件夹 (...)”,我只会收到此错误。 If I don't check this, I don't get any jar files related to my web service, just a bunch of Axis2 dependent jar files.如果我不检查这个,我不会得到任何与我的 web 服务相关的 jar 文件,只是一堆依赖于 Axis2 的 jar 文件。

How do I use the Axis2 Codegen Wizard?如何使用 Axis2 Codegen 向导?

I would prefer not to use this generator anymore, this is an old method, from eclipse Indigo EE, you just go to new--> web service client, and go through the wizard step by step. I would prefer not to use this generator anymore, this is an old method, from eclipse Indigo EE, you just go to new--> web service client, and go through the wizard step by step.

Using Axis2 plugins to generate the client and server;使用Axis2插件生成客户端和服务器; you will face a lot of unpredictable issues like this.你会面临很多这样的不可预知的问题。

Axis2 Code Generator should have same version number with Axis2. Axis2 代码生成器的版本号应与 Axis2 相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM