You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/08/15 05:50:04 UTC

DO NOT REPLY [Bug 11170] - A subclass in parameter was not serialized with the correct type

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=11170>.
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=11170

A subclass in parameter was not serialized with the correct type





------- Additional Comments From chris.haddad@cobia.net  2002-08-15 03:50 -------
In the latest build, Axis is correctly serializing a subclass. 

---- for the following code:
 DerivedClass oDerived = new DerivedClass();
 oDerived.setProp2(222);
 oDerived.setProp1(111);
 BaseClass oBase = oPoly.echoBase(oDerived);

---- where echoBase has the following signature:

public BaseClass echoBase(BaseClass oEcho);

---- the following request is generated:

<ns1:echoBase xmlns:ns1="urn:Poly">
   <oEcho href="#id0"/>
  </ns1:echoBase>
  <multiRef id="id0" SOAP-ENC:root="0" 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xsi:type="ns2:DerivedClass" xmlns:ns2="http://poly.axisbugs">
   <prop2 xsi:type="xsd:int">222</prop2>
   <prop1 xsi:type="xsd:int">111</prop1>
  </multiRef>

---- and the following response is generated:
 <ns1:echoBaseResponse 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:ns1="urn:Poly">
   <echoBaseReturn href="#id0"/>
  </ns1:echoBaseResponse>
  <multiRef id="id0" soapenc:root="0" 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xsi:type="ns2:DerivedClass" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:ns2="http://poly.axisbugs">
   <prop2 xsi:type="xsd:int">222</prop2>
   <prop1 xsi:type="xsd:int">111</prop1>
  </multiRef>