If you copy and pasted this bit of XML, then you have an error. The sequence element doesn't have a closing tag and there are two closing tags for the extension element. However, I would have expected this to show up as an error when running WSDL2Java.
Tony
I'm trying to factorise my wsdl descriptions for all our web services,
but as soon as I use the <extension base="..." the stubs which are
generated are completely empty. Is there some special magic option I
need to set, or is this functionality just not supported by Axis yet?
(using 1.1 beta)
The class I want to extend is not even generated by Axis (in the example
below, the SDResult class)
I'd appreciate any thoughts on where I'm going wrong.
Here's my wsdl snippet :
...
<xsd:schema>
<xsd:complexType abstract="true" name="SDResult">
<xsd:sequence>
<xsd:element name="SDId"
type="xsd:string"/>
<xsd:element name="SDIndex" type="xsd:int"/>
<xsd:element name="SDMimeType" type="xsd:string"/>
<xsd:element name="SDURL"
type="xsd:string"/>
<xsd:element name="SDStatus"
type="xsd:string"/>
<xsd:element name="SDMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EmailResult">
<complexContent>
<extension base="SDResult">
<sequence>
<xsd:element name="Result"
type="xsd:string"/>
</extension>
</extension>
</complexContent>
</xsd:complexType>
</xsd:schema>
...
- "extension base" inheritance seems non-functio... [EMAIL PROTECTED]
- Re: "extension base" inheritance seems no... tony . q . weddle
- Re: "extension base" inheritance seem... [EMAIL PROTECTED]
- Re: "extension base" inheritance ... [EMAIL PROTECTED]
- RE: "extension base" inherita... Christophe Roudet
- Re: "extension base" inh... [EMAIL PROTECTED]
- RE: "extension base"... Christophe Roudet
- Re: "extension base"... [EMAIL PROTECTED]