【发布时间】:2011-11-04 13:54:14
【问题描述】:
我有一个 WSDL,其中缺少 portType-operation-input-name。其他一切都很好。我正在使用 CXF 的 Ant 任务中的 WSDL2JAVA。
<operation name="Sym">
<input message="tns:SymRequest"/>
<output message="tns:SymResponse"/>
<fault message="tns:WSException" name="WSException"/>
</operation>
它在生成 java 类时抛出异常。如果我添加 name 属性,它可以工作。根据 WSDL 规范,输入参数不需要名称属性,那么它为什么会抱怨。
【问题讨论】:
-
由 {http://.....}[portType:SymPortType][operation:Sym][output:SymResponse] 不存在引起。 [java] 文件:Sym.wsdl:[189,4] [java] 由 {http://....1}[portType:SymPortType][operation:Sym][input:SymRequest] 不存在引起。跨度>
标签: java web-services cxf wsdl2java