Hi,

I write a JavaScript client using apache cxf to call web service. My Question is: Is it possible to uses the Parent class (Parameter) as an input parameter and get the value of the child class (FloatVectorParameter)? Does apache cxf JavaScript clients support type inheritance at all?

A part of my wsdl file is:
-----------------------------------------------------
<complexType name="Parameter">
    <sequence>
      <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
     <element name="type" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="description" type="xsd:string" minOccurs="1" maxOccurs="1"/>
    <element name="mapped" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
   </sequence>
</complexType>

<complexType name="FloatVectorParameter">
    <complexContent>
        <extension base="covise:Parameter">
<sequence><element name="value" type="xsd:float" minOccurs="1" maxOccurs="unbounded"/>
            </sequence>
        </extension>
    </complexContent>
</complexType>
--------------------------------------------

Best Regards,
Aihong.






Reply via email to