cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r448139 - /incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
Date Wed, 20 Sep 2006 09:36:59 GMT
Author: tli
Date: Wed Sep 20 02:36:58 2006
New Revision: 448139

URL: http://svn.apache.org/viewvc?view=rev&rev=448139
Log:
fix the bug in Mime message processing

Modified:
    incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java?view=diff&rev=448139&r1=448138&r2=448139
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
(original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
Wed Sep 20 02:36:58 2006
@@ -229,11 +229,11 @@
         SOAPBody soapBody = bmsg.getExtensor(SOAPBody.class);
         List parts = null;
         if (soapBody == null) {
-            // MultipartRelatedType ext
             MIMEMultipartRelated mmr = bmsg.getExtensor(MIMEMultipartRelated.class);
-            parts = mmr.getMIMEParts();
+            if (mmr != null) {
+                parts = mmr.getMIMEParts();
+            }
         } else {
-
             bodyInfo.setUse(soapBody.getUse());
             parts = soapBody.getParts();
         }
@@ -256,7 +256,7 @@
                         }
                     }
                 } else {
-                    partName = (String) itr.next();
+                    partName = (String)part;
                 }
                 if (partName != null) {
                     MessagePartInfo mpi = msg.getMessagePart(new QName(msg.getName().getNamespaceURI(),



Mime
View raw message