axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message RPCElement.java
Date Wed, 02 May 2001 12:16:07 GMT
dug         01/05/02 05:16:07

  Modified:    java/src/org/apache/axis/message RPCElement.java
  Log:
  Fix a bug and add another constructor.
  
  Revision  Changes    Path
  1.2       +16 -2     xml-axis/java/src/org/apache/axis/message/RPCElement.java
  
  Index: RPCElement.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/RPCElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RPCElement.java	2001/04/26 22:53:40	1.1
  +++ RPCElement.java	2001/05/02 12:16:07	1.2
  @@ -130,19 +130,33 @@
           super(namespace, localName, attrs, context);
           this.methodName = localName;
       }
  -    
  +
       public RPCElement(String methodName, Object [] args)
       {
           this.methodName = methodName;
           this.name = methodName;
  +        
  +        for (int i = 0; args != null && i < args.length; i++) {
  +            if (args[i] instanceof RPCParam) {
  +                addParam((RPCParam)args[i]);
  +            } else {
  +                addParam(new RPCParam("arg" + i, args[i]));
  +            }
  +        }
  +    }
  +    
  +    public RPCElement(String namespace, String methodName, Object[] args ) {
  +        this.methodName = methodName;
  +        this.name = methodName;
           
  -        for (int i = 0; i < args.length; i++) {
  +        for (int i = 0; args != null && i < args.length; i++) {
               if (args[i] instanceof RPCParam) {
                   addParam((RPCParam)args[i]);
               } else {
                   addParam(new RPCParam("arg" + i, args[i]));
               }
           }
  +        this.setNamespaceURI( namespace );
       }
       
       public RPCElement(String methodName)
  
  
  

Mime
View raw message