axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Thomas Manes <atma...@gmail.com>
Subject Re: Java interface type mapping
Date Sun, 03 Apr 2005 15:21:28 GMT
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 <lafroumi.ml@gmail.com> 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.
>

Mime
View raw message