You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by to...@apache.org on 2005/05/27 17:38:09 UTC

cvs commit: ws-axis/java/src/org/apache/axis/encoding/ser BeanSerializer.java

tomj        2005/05/27 08:38:09

  Modified:    java/src/org/apache/axis/encoding/ser BeanSerializer.java
  Log:
  Fix bug 1955: Axis 1.2rc3 does not write derived types from abstract classes to wsdl.
    http://issues.apache.org/jira/browse/AXIS-1955
  
  Patch from Jayachandra (ajayachandra@gmail.com):
  I've noticed that in the BeanSerializer.java code when writing out type
  information for fields, they are just being written out using the types.writeType()
  method this method doesn't have the necessary logic to write out
  subTypes of the type we are trying to write out. So I tried to use the
  types.writeTypeAndSubTypeForPart() method that has the required functionality.
  
  Revision  Changes    Path
  1.87      +2 -1      ws-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java
  
  Index: BeanSerializer.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- BeanSerializer.java	26 Apr 2005 22:01:02 -0000	1.86
  +++ BeanSerializer.java	27 May 2005 15:38:09 -0000	1.87
  @@ -491,7 +491,8 @@
                   xmlType = null;
               }
               
  -            elementType = types.writeType(fieldType, xmlType);
  +            QName typeQName = types.writeTypeAndSubTypeForPart(fieldType, xmlType);
  +            elementType = types.getQNameString(typeQName);
   
               if (elementType == null) {
                   // If writeType returns null, then emit an anytype.