axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/providers/java RPCProvider.java
Date Thu, 06 Sep 2001 20:18:09 GMT
butek       01/09/06 13:18:09

  Modified:    java/src/org/apache/axis/providers/java RPCProvider.java
  Log:
  Modified to make multiple output parameters work.
  
  Revision  Changes    Path
  1.18      +17 -2     xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java
  
  Index: RPCProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- RPCProvider.java	2001/09/05 12:11:24	1.17
  +++ RPCProvider.java	2001/09/06 20:18:09	1.18
  @@ -61,6 +61,7 @@
   import org.apache.axis.utils.* ;
   import org.apache.axis.utils.cache.* ;
   import org.apache.axis.message.* ;
  +import org.apache.axis.server.ParamList;
   import org.apache.log4j.Category;
   
   /**
  @@ -224,8 +225,22 @@
               resBody.setPrefix( body.getPrefix() );
               resBody.setNamespaceURI( body.getNamespaceURI() );
               if ( objRes != null ) {
  -                RPCParam param = new RPCParam(mName + "Result", objRes);
  -                resBody.addParam(param);
  +                if (objRes instanceof ParamList) {
  +                    ParamList list = (ParamList)objRes;
  +                    for (int i = 0; i < list.size (); ++i) {
  +                        if (list.get (i) instanceof RPCParam) {
  +                            resBody.addParam ((RPCParam) list.get (i));
  +                        }
  +                        else {
  +                            resBody.addParam (new RPCParam (mName + "Result" + i,
  +                                list.get (i)));
  +                        }
  +                    }
  +                }
  +                else {
  +                    RPCParam param = new RPCParam(mName + "Result", objRes);
  +                    resBody.addParam(param);
  +                }
               }
               resEnv.addBodyElement( resBody );
               resEnv.setEncodingStyleURI(Constants.URI_SOAP_ENC);
  
  
  

Mime
View raw message