antelder    2003/01/14 06:48:53

  Modified:    java/src/org/apache/wsif/providers/soap/apacheaxis
                        WSIFOperation_ApacheAxis.java
  Log:
  Fix mime binding with a soap:body without a parts attribute to default to parts=""
  This is perhaps not correct and wont work if there are no mime parts but enables 
testing to continue while we decide what the WSDL really should look like
  
  Revision  Changes    Path
  1.59      +6 -1      
xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java
  
  Index: WSIFOperation_ApacheAxis.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- WSIFOperation_ApacheAxis.java     13 Jan 2003 22:36:52 -0000      1.58
  +++ WSIFOperation_ApacheAxis.java     14 Jan 2003 14:48:53 -0000      1.59
  @@ -715,11 +715,16 @@
                                                mimePartNames.add(partName);
   
                                        } else if (nextChild instanceof SOAPBody) {
  -                                             if (soapBodyFound)
  +                                             if (soapBodyFound) {
                                                        throw new WSIFException(
                                                                "Multiple soap:body 
tags found in a "
                                                                        + 
"mime:multipartRelated. Operation="
                                                                        + getName());
  +                                             }
  +                                             if (((SOAPBody)nextChild).getParts() 
== null) {
  +                                                     
((SOAPBody)nextChild).setParts(new ArrayList());
  +                                             }
  +                                                                     
                                                soapBodyFound = true;
                                                containsSoapBody = true;
                                                if (containsMimeContent)
  
  
  


Reply via email to