axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JabberW <>
Subject strange inheritance handling by Java2WSDL
Date Wed, 08 Nov 2006 16:25:22 GMT
Hi all.
I'm trying to generate a WSDL for simple service with some extended
data type  (see below the example). Axis 1.2.1 I used previously
generates it in pretty reasonable way (max/min occurs are deleted for
sake of clearness):

   <complexType name="Data_A">
         <element name="val_1" type="xsd:string"/>

   <complexType name="Data_B">
     <extension base="tns1:Data_A">
       <element  name="val_2" type="xsd:string"/>

While Axis2-11 substitutes the extension by simple including:	
  <xs:complexType name="Data_B">
         <xs:element name="val_1" nillable="true" type="xs:string"/>
         <xs:element name="val_2" nillable="true" type="xs:string"/>

Is it correct basically? Is it possible to enforce new Axis to
generate it in the old-fashion way with all type relations restored?

Greatly appreciate any inputs,
Jabb. (jabberw-at-gmail)

////////////// example /////
 class MySvc {
      public String myOp(Data_B)
 public class Data_A {
    public  void setVal_1(String s){}
    public String getVal_1(){}
 public class Data_B extends Data_A {
    public void setVal_2(String s){}
    public String getVal_2(){}

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message