You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Aihong Yin <yi...@hlrs.de> on 2012/11/23 11:27:04 UTC

Help me and Thanks!

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.







Re: Help me and Thanks!

Posted by Daniel Kulp <dk...@apache.org>.
On Nov 23, 2012, at 5:27 AM, Aihong Yin <yi...@hlrs.de> 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
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com