axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Fell (JIRA)" <>
Subject [jira] Created: (AXIS-1919) Deserialization of derived types gets messed up
Date Thu, 07 Apr 2005 17:16:38 GMT
Deserialization of derived types gets messed up

         Key: AXIS-1919
     Project: Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.2RC3    
 Environment: WinXP, JDK1.5.01
    Reporter: Simon Fell
    Priority: Blocker

I generated client stubs from the attached WSDL, and made a call to the retrieve method, which
corectly generates this request

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv=""
xmlns:xsd="" xmlns:xsi="">
<ns1:SessionHeader soapenv:actor="" soapenv:mustUnderstand="0"
<ns2:sessionId xmlns:ns2="">AKBzj2_geoRHlSEVJEqnoGrbMxtNzKqjQIMN.XcNCE1BbmJXoT_Wikatr5xneVBolvUZL4Pa6jmoqd0ZwBrV42pYnKO9AsNCSeX5jsUoLXQ=</ns2:sessionId>
<retrieve xmlns="">
<fieldList>Id, Name, AccountNumber</fieldList>

The server responds with this response, which is valid to the WSDL (and is generated with
Axis 1.1)
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
  <retrieveResponse xmlns="">
   <result xsi:type="sf:Account" xmlns:sf="">
    <sf:Name>Account 2</sf:Name>

It contains a single result object, however the resulting SObject array returned by the generated
retrieve call has 2 items in the array, both of the base SObject type, not the derived Account
type, and none of the fields are populated.

The same scenario works fine using Axis 1.1

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message