But you can't return an abstract type. You must return type "A". Or you may return type "anyType", which is what Axis generated for you.
SOAP is not a distributed object system. Don't try to make it support polymorphism. Anne On Apr 1, 2005 2:39 PM, Yves Erb <[EMAIL PROTECTED]> wrote: > Sorry, I see my explanation wasn't clear :-) > In fact I don't want to send a class nor an interface, just datas. The > point is that I'd want a type mapping for the interface. Let me give > an example. > > ... > <xsd:complexType name="I" abstract="true"/> > > <xsd:complexType name="A"> > <xsd:complexContent> > <xsd:extension base="I"> > <xsd:sequence> > <xsd:element name="name" nillable="true" type="xsd:string"/> > </xsd:sequence> > </xsd:extension> > </xsd:complexContent> > </xsd:complexType> > ... > <element name="getIResponse"> > <complexType> > <sequence> > <element name="getIReturn" type="I"/> > </sequence> > </complexType> > </element> > ... > > With such a WSDL I could send objects implementing I (A for example). > Well, I mean data objects, not classes. >