[ http://issues.apache.org/jira/browse/AXIS-2171?page=comments#action_12319548 ]
Davanum Srinivas commented on AXIS-2171: ---------------------------------------- Pramod, could you please try this with latest CVS. specifically run "ant clean all-tests" and make sure that nothing is broken. -- dims > same xml type java superclass registering serializer > ---------------------------------------------------- > > Key: AXIS-2171 > URL: http://issues.apache.org/jira/browse/AXIS-2171 > Project: Apache Axis > Type: Improvement > Components: Serialization/Deserialization > Versions: 1.2.1 > Reporter: Pramod Immaneni > Priority: Minor > Attachments: patch_same_type_java_superclass-1_2_1 > > I was using axis and I needed to register a custom serializer for a > java type with the following condition. The method signature has a > return type of the java type but at runtime the method would return > any implementation of this java type. > So for example I have a method which is declared as following in the > webservice > IfaceA myMethod( myArgs ) > and at runtime the method returns a ImplA which implements IfaceA. > Since I am only interested in the IfaceA properties of the return > object as declared in the webservice and may not know the > implementation I would like to be able to register a serializer for > IfaceA. > In the 1.2.1 version I had to register the serializer for the > implementation as well as the interface to get it to work. Attached > is a patch that will allow one to just register a serializer for the > interface and it will be picked up if one isnt found for the > implementation (also as far as I could tell from the fix the > serializer will not be picked up if the method returns the > implementation instead of the interface which should be the right > behaviour). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
