antelder    2002/12/12 12:17:33

  Modified:    java/src/org/apache/wsif/providers/soap/apacheaxis
                        WSIFOperation_ApacheAxis.java
  Log:
  Fix to not add JMS property parts to call parameters
  
  Revision  Changes    Path
  1.45      +7 -4      
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.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- WSIFOperation_ApacheAxis.java     12 Dec 2002 11:53:15 -0000      1.44
  +++ WSIFOperation_ApacheAxis.java     12 Dec 2002 20:17:33 -0000      1.45
  @@ -347,7 +347,7 @@
                        if (wsifPort.isTransportJMS())
                                setInputJmsProperties(inJmsProps);
                        else
  -                             throw new WSIFException("jms:properties found in 
non-jms binding");
  +                             throw new WSIFException("jms:property found in non-jms 
binding");
                }
   
                List inJmsPropVals =
  @@ -1516,9 +1516,12 @@
                // setup the input SOAP parts
                for (int i = 0; i < soapParts.size(); i++) {
                        Part p = (Part) soapParts.get(i);
  -                     QName name = new QName(inputNamespace, p.getName());
  -                     QName type = getPartType(p);
  -                     call.addParameter(name, type, ParameterMode.IN);
  +                     String partName = p.getName();
  +                 if (!inJmsProps.containsKey(partName)) {
  +                         QName name = new QName(inputNamespace, partName);
  +                         QName type = getPartType(p);
  +                         call.addParameter(name, type, ParameterMode.IN);
  +                 }
                }
                // setup the input MIME parts
                for (int i = 0; i < inputMIMEParts.size(); i++) {
  
  
  


Reply via email to