Axis 1.4 在构造函数中生成过多参数
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我过去遇到过这个问题。就我而言,我别无选择,只能使用 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