2014-01-30 37 views
0

「src-resolve:無法將名稱'tns1:UmciAttributeType'解析爲(n)'類型定義'組件「。 <element name="type" nillable="true" type="tns1:UmciAttributeType"/>src-resolve:無法將名稱'tns1:UmciAttributeType'解析爲(n)'類型定義'組件

和創建從示出了下面的錯誤的Java文件web服務: 「IWAB0399E錯誤在WSDL文件

<complexType name="UmciAttribute"> 
<complexContent> 
<extension base="tns1:UmciRoot"> 
    <sequence> 
    <element name="domain" nillable="true" type="xsd:string"/> 
    <element name="inherited" type="xsd:boolean"/> 
    <element name="keyName" nillable="true" type="xsd:string"/> 
    <element name="newName" nillable="true" type="xsd:string"/> 
    <element name="parent" nillable="true" type="tns1:UmciElementID"/> 
    <element name="type" nillable="true" type="tns1:UmciAttributeType"/> 
    <element name="value" nillable="true" type="xsd:string"/> 
    </sequence> 
</extension> 
</complexContent> 

該錯誤是在這條線示出該錯誤從WSDL: java.io.IOException: Type UmciAttributeType生成Java被引用但未定義。「我認爲這個錯誤是由於上面提到的WSDL文件中的錯誤。

回答

0

錯誤非常明顯。這是說UmciAttributeType型號沒有定義。它應該在該文件的某處進行定義。

您還有一個UmciElementID類型,它不會給出錯誤,所以它必須在某處定義,就像UmciAttributeType應該一樣。

+0

實際上我在我的方法中使用'UmciAttribute',並且定義了它,但是我不知道'UmciAttributeType'是從哪裏來的!?當我從'UmciAttributeType'中刪除「Type」時,它顯示沒有錯誤! :d – BollyBoy

相關問題