cxf-codegen-plugin - CXF 2.x 代码生成不生成引用类
问题描述
我正在尝试使用 Eclipse 的 Web 服务 > 生成客户端功能(右键单击 wsdl 时)从 wsdl 生成 java 客户端。
它确实生成了很多类,但是缺少一些类!!!
我看到至少一种类型它没有处理
<s:complexType name="Participant">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="ParticipantId" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="NameOrNumber" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="EmailAddress" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ParticipantCallType" type="tns:ParticipantType" />
</s:sequence>
</s:complexType>
<s:simpleType name="ParticipantType">
<s:restriction base="s:string">
<s:enumeration value="TMS" />
<s:enumeration value="IP Video <-" />
<s:enumeration value="IP Tel <-" />
<s:enumeration value="ISDN Video <-" />
<s:enumeration value="Telephone <-" />
<s:enumeration value="IP Video ->" />
<s:enumeration value="IP Tel ->" />
<s:enumeration value="ISDN Video ->" />
<s:enumeration value="Telephone ->" />
<s:enumeration value="Directory" />
<s:enumeration value="User" />
<s:enumeration value="SIP <-" />
<s:enumeration value="SIP ->" />
<s:enumeration value="3G <-" />
<s:enumeration value="3G ->" />
<s:enumeration value="TMS Master Participant" />
<s:enumeration value="SIP Tel <-" />
<s:enumeration value="SIP Tel ->" />
</s:restriction>
</s:simpleType>
因此生成了 Participant 类,但 ParticipantType 不是,并且 ParticipantCallType 字段以字符串而不是枚举的形式出现。
我在向导中尝试了一些选项,但没有一个解决了这个问题(生成了参考类 ParticipantCallType)
我应该注意到我使用 CXF 3.4.3 作为我的运行时
解决方案
推荐阅读
- javascript - Vanilla javascript图像轮播在首次加载时未初始化
- android - 如果 BroadcastReceiver 在 AppWidgetProvider 中注册,它会保持活动多长时间?
- reactjs - 如何根据 React 上的输入表单禁用/启用按钮?
- typescript - 如何检查一个javascript对象数组的属性是否包含在一个对象数组中?
- sql-server - 创建引用复合键的外键
- javascript - 使用 Three.js 无法在 Mapbox 上加载 3D 模型
- python - 在没有循环的特定索引中创建张量
- python - Websocket 传输不可用。烧瓶
- ios - SwiftUI - 如何覆盖嵌套的偏移/位置动画?
- javascript - 将 JS 计算结果从 Input 字段移动到 php 标签内的 JS