DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14540>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14540

Inherited attributes are lost during serialization

           Summary: Inherited attributes are lost during serialization
           Product: Axis
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Inherited attributes are lost during serialization.
Here's an example:

Supertype's wsdl definition:

        <s:complexType name="RequestBaseType">
                <s:attribute use="required" name="Type" type="s:string"/>
        </s:complexType>

Inherited type's definition:

        <s:element name="Request">
          <s:complexType>
             <s:complexContent>
                <s:extension base="s:RequestBaseType">
                   <s:sequence>
                    ...  
                   </s:sequence>
              </s:complexContent>
           </s:complexType>
        </s:element>

Any set values for "Type" are lost sendind a Request object.
With the following "workaround" everything works fine:

        <s:element name="Request">
            <s:complexType>
                <s:complexContent>
                  <s:extension base="s0:RequestBaseType">
                    <s:sequence>
                       ...  
                    </s:sequence>
                    <s:attribute use="optional" name="MyDummyType" 
type="s:string"/>
                 </s:complexContent>
            </s:complexType>
        </s:element>

Reply via email to