axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <>
Subject [jira] [Commented] (AXIS2-479) Axis2 does not deserialise abstract types correctly when receiving WSA messages
Date Tue, 26 Dec 2017 13:11:00 GMT


Hudson commented on AXIS2-479:

ABORTED: Integrated in Jenkins build Axis2 #3864 (See [])
Recycle the test case for AXIS2-479 and transform it into a test case for Axiom. It is no
longer relevant for Axis2 itself because XmlBeans objects are now serialized using SAX. (veithen:
rev 1819279)
* (edit) axis2/modules/integration/itest-build.xml
* (edit) axis2/modules/integration/pom.xml
* (delete) axis2/modules/integration/test-resources/xsd/type-test.xsd
* (delete) axis2/modules/integration/test/org/apache/axis2/om/

> Axis2 does not deserialise abstract types correctly when receiving WSA messages
> -------------------------------------------------------------------------------
>                 Key: AXIS2-479
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 0.94
>         Environment:  Suse Linux 9.3 Server, Tomcat 5.0, Axis2 0.94
>            Reporter: Justin Schoeman
>            Assignee: Ajith Harshana Ranabahu
> When receiving WSA encoded messages containing abstract types, the created objects are
for the implementation of the abstract class, instead of the actual type sent over the wire.
> In the following example, DeviceID is an abstract type, and EANDeviceID is an implementation
of that type. The following information is obtained from the deserialised DeviceID object
(which is sent as an EANDeviceID object):
> WSA:
> getClass().getName():
> schemaType(): DeviceID@
> toString(): <xml-fragment type="sch:GenericDeviceID" id="255255010" xmlns:sch=""/>
> XSI:
> getClass().getName():
> schemaType(): T=GenericDeviceID@
> toString(): <xml-fragment xsi:type="sch:GenericDeviceID" id="255255010" xmlns:sch=""
> As you can see, in both cases, the correct information is contained in the xmlbean, but
for the WSA message it is deserialised incorrectly.
> -justin

This message was sent by Atlassian JIRA

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

View raw message