axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14540] New: - Inherited attributes are lost during serialization
Date Thu, 14 Nov 2002 09:11:14 GMT
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: axis-dev@xml.apache.org
        ReportedBy: Matthias.David@ptv.de


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>

Mime
View raw message