2011-11-02 31 views
1

以下WSDL getter和setter getter和setter不被用於屬性brokerCommissionWSDL2JAVA不產生關於屬性

<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"/> 

回答

1

我知道這是一個老問題產生。但我有一個類似的問題!

當我在看我的xsd時,發現擴展類型有一個與我的複雜類型中的元素命名相同的屬性。

重命名元素後,wsdl2java產生了getter/setter。