You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by sn...@apache.org on 2002/08/28 20:13:10 UTC

cvs commit: xml-soap/java/src/org/apache/soap/encoding/soapenc ArraySerializer.java

snichol     2002/08/28 11:13:10

  Modified:    java/docs changes.html
               java/src/org/apache/soap/encoding/soapenc
                        ArraySerializer.java
  Log:
  Bugzilla 11367 submitted by jcarew@attbi.com (Joe Carew).
  
  Fix deserialization of multi-reference arrays.
  
  Revision  Changes    Path
  1.38      +1 -0      xml-soap/java/docs/changes.html
  
  Index: changes.html
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/docs/changes.html,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- changes.html	26 Aug 2002 21:16:16 -0000	1.37
  +++ changes.html	28 Aug 2002 18:13:09 -0000	1.38
  @@ -60,6 +60,7 @@
         within the <code>isd:provider</code> element in the deployment descriptor.</li>
         <li>Add a CORBA provider, allowing CORBA interfaces to be exposed via
         SOAP without writing any code.</li>
  +      <li>Fixed deserialization of multi-reference arrays.</li>
       </ul>
     </li>
   </ul>
  
  
  
  1.11      +5 -4      xml-soap/java/src/org/apache/soap/encoding/soapenc/ArraySerializer.java
  
  Index: ArraySerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/encoding/soapenc/ArraySerializer.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ArraySerializer.java	23 May 2002 19:55:29 -0000	1.10
  +++ ArraySerializer.java	28 Aug 2002 18:13:10 -0000	1.11
  @@ -168,10 +168,6 @@
         String actualEncStyle = declEncStyle != null
                                 ? declEncStyle
                                 : inScopeEncStyle;
  -      QName declItemType = SoapEncUtils.getTypeQName(tempEl);
  -      QName actualItemType = declItemType != null
  -                             ? declItemType
  -                             : arrayItemType;
   
         // If it's a local reference, follow it.
         String href = tempEl.getAttribute(Constants.ATTR_REFERENCE);
  @@ -185,6 +181,11 @@
             throw new IllegalArgumentException("No such ID '" + href + "'");
           }
         }
  +
  +      QName declItemType = SoapEncUtils.getTypeQName(actualEl);
  +      QName actualItemType = declItemType != null
  +                             ? declItemType
  +                             : arrayItemType;
   
         if (!SoapEncUtils.isNull(actualEl))
         {
  
  
  

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>