axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/providers/java RPCProvider.java
Date Thu, 22 Aug 2002 22:06:17 GMT
tomj        2002/08/22 15:06:17

  Modified:    java/src/org/apache/axis/providers/java RPCProvider.java
  Log:
  Add some comments and remove unused code.
  
  Revision  Changes    Path
  1.90      +9 -7      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.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- RPCProvider.java	21 Aug 2002 20:27:57 -0000	1.89
  +++ RPCProvider.java	22 Aug 2002 22:06:17 -0000	1.90
  @@ -221,7 +221,13 @@
           for ( int i = 0 ; i < numArgs ; i++ ) {
               RPCParam rpcParam = (RPCParam)args.get(i);
               Object value = rpcParam.getValue();
  +
  +            // first check the type on the paramter
               ParameterDesc paramDesc = rpcParam.getParamDesc();
  +            
  +            // if we found some type info try to make sure the value type is
  +            // correct.  For instance, if we deserialized a xsd:dateTime in
  +            // to a Calendar and the service takes a Date, we need to convert
               if (paramDesc != null && paramDesc.getJavaType() != null) {
   
                   // Get the type in the signature (java type or its holder)
  @@ -231,18 +237,14 @@
                   value = JavaUtils.convert(value,
                                             sigType);
   
  -/* Is this needed?  I think JavaUtils.convert does the work.
  -                if (value != null && value.getClass().getName().equals(
  -                        "javax.activation.DataHandler")) {
  -                    value = getDataFromDataHandler(value, paramDesc);
  -                }
  -*/
  -
                   rpcParam.setValue(value);
                   if (paramDesc.getMode() == ParameterDesc.INOUT) {
                       outs.add(rpcParam);
                   }
               }
  +            
  +            // Put the value (possibly converted) in the argument array
  +            // make sure to use the parameter order if we have it
               if (paramDesc == null || paramDesc.getOrder() == -1) {
                   argValues[i]  = value;
               } else {
  
  
  

Mime
View raw message