On Nov 23, 2012, at 5:27 AM, Aihong Yin <[email protected]> wrote: > 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?
Likely no. Right now, the javascript client can pretty much just handle the basic types and structures. However, we'd certainly accept any patches that would help beef up it's abilities. Dan > > 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. > > > > > > -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
