表示没有为属性brokerCommission
生成以下wsdl getter和setter <complexType name="SplitBackToBackTradeType">
<complexContent>
<extension base="tns1:SplitTradeType">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="BrokerIdentifier" nillable="true" type="tns1:OrganisationIdentifierType"/>
<element name="IntermediateSettlementMethod" nillable="true" type="tns1:SettlementMethodType"/>
<element name="SourceSettlementMethod" nillable="true" type="tns1:SettlementMethodType"/>
<element name="IntermediateBookCategoryIdentifier" nillable="true" type="tns1:BookCategoryIdentifierType"/>
<element maxOccurs="unbounded" name="IntermediateCounterpartyIdentifier" nillable="true" type="tns1:OrganisationIdentifierType"/>
<element maxOccurs="unbounded" name="SourceCounterpartyIdentifier" nillable="true" type="tns1:OrganisationIdentifierType"/>
<element maxOccurs="1" minOccurs="0" name="NetGrossConsiderationIndicator" nillable="true" type="tns1:NetGrossConsiderationIndicatorType"/>
<element maxOccurs="1" minOccurs="0" name="IntermediateCurrencyIndicator" nillable="true" type="tns1:CurrencyIndicatorType"/>
</sequence>
</extension>
</complexContent>
<attribute name="brokerCommission" type="xsd:double"/>
答案 0 :(得分:1)
我知道这是一个老问题。但我遇到了类似的问题!
当我查看我的xsd时,我发现扩展类型的属性名称与我的复杂类型中的元素相同。
重命名元素后,wsdl2java生成了getter / setter。