Axis 1.4 在构造函数中生成过多参数

发布于 2024-11-09 15:36:39 字数 466 浏览 4 评论 0原文

我正在使用 Axis 1.4 wsdl2java 工具为 此 wsdl 生成存根 Java 类

问题是该工具在 TransactionSearchBasic 中生成的构造函数超出了 Java 的 255 限制。我需要一种方法来指示wsdl2java 工具不会生成那么大的构造函数。所以我知道使用 jaxb 绑定:

适用于 CFX 客户端生成,但我需要一种方法来从axis wsdl2java 客户端。有没有办法在 Axis 的 wsdl2java 客户端中指定 typeSafeEnumMaxMembers ?

I am using the Axis 1.4 wsdl2java tool to generate stub java classes for this wsdl

The problem is the tool generates a constructor in TransactionSearchBasic that exceeds Java's limit of 255. I need a way to instruct the wsdl2java tool not generate that large of a constructor. So I know that using a jaxb binding of:

<jaxb:globalBindings typesafeEnumMaxMembers="2000"/>

works for the CFX client generation, but I need a way to get the generate source correct from the axis wsdl2java client. Is there a way to specify the typeSafeEnumMaxMembers in the wsdl2java client in Axis?

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

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

发布评论

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

评论(1

不再让梦枯萎 2024-11-16 15:36:39

我过去遇到过这个问题。就我而言,我别无选择,只能使用 Axis 1.x,因为我需要从 RPC/编码的 WSDL 文件生成代码存根 - 版本 2 不支持这种格式。

我通过获取 Axis 1.4 源代码解决了这个问题代码并针对该问题应用修复程序(我忘记在哪里找到修复程序)。我将其保存在 GitHub 存储库中:
https://github.com/zephyrj/JAxis-1.4.5

I have encountered this problem in the past. In my case I had no choice but to use Axis 1.x because I needed to generate code stubs from a RPC/encoded WSDL file - a format which is not supported in version 2.

I got around the issue by taking the Axis 1.4 source code and applying a fix (I forget where I found the fix) for the issue. I stuck it in a GitHub repository at:
https://github.com/zephyrj/JAxis-1.4.5

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