Yes, sorry, it was just a copy paste error.
The correct wsdl is :

<xsd:complexType name="EmailResult">
<complexContent>
<extension base="sdns:SDResult">
<xsd:all>
<xsd:element name="Result" type="xsd:string"/>
</xsd:all>
</extension>
</complexContent>
</xsd:complexType>



but the end result is the same.
Does anyone have an example using a wsdl declaration like this that I can crib from?



[EMAIL PROTECTED] wrote:


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>
...





Reply via email to