axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaDeployWriter.java
Date Wed, 08 May 2002 15:34:23 GMT
gdaniels    02/05/08 08:34:23

  Modified:    java/src/org/apache/axis/description ParameterDesc.java
               java/src/org/apache/axis/wsdl/toJava JavaDeployWriter.java
  Log:
  Write returnType information into generated WSDD.
  
  Revision  Changes    Path
  1.7       +0 -1      xml-axis/java/src/org/apache/axis/description/ParameterDesc.java
  
  Index: ParameterDesc.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/description/ParameterDesc.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ParameterDesc.java	29 Apr 2002 19:41:17 -0000	1.6
  +++ ParameterDesc.java	8 May 2002 15:34:22 -0000	1.7
  @@ -58,7 +58,6 @@
   import org.apache.axis.utils.JavaUtils;
   
   import javax.xml.rpc.namespace.QName;
  -import java.util.Vector;
   
   /**
    * A Parameter descriptor, collecting the interesting info about an
  
  
  
  1.38      +12 -1     xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
  
  Index: JavaDeployWriter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaDeployWriter.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- JavaDeployWriter.java	15 Apr 2002 03:01:51 -0000	1.37
  +++ JavaDeployWriter.java	8 May 2002 15:34:23 -0000	1.38
  @@ -293,6 +293,7 @@
                   if (params != null) {
                       QName elementQName = null;
                       QName returnQName = null;
  +                    QName returnType = null;
   
                       // Get the operation qname
                       Input input = operation.getInput();
  @@ -317,9 +318,13 @@
                       if (params.returnName != null)
                           returnQName = Utils.getWSDLQName(params.returnName);
   
  +                    if (params.returnType != null) {
  +                        returnType = params.returnType.getQName();
  +                    }
  +
                       // Write the operation metadata
                       writeOperation(javaOperName, elementQName, returnQName,
  -                                   params);
  +                                   returnType, params);
                   }
               }
           }
  @@ -349,6 +354,7 @@
       protected void writeOperation(String javaOperName,
                                     QName elementQName,
                                     QName returnQName,
  +                                  QName returnType,
                                     Parameters params) {
           pw.print("      <operation name=\"" + javaOperName + "\"");
           if (elementQName != null) {
  @@ -359,6 +365,11 @@
           if (returnQName != null) {
               pw.print(" returnQName=\"" +
                        Utils.genQNameAttributeString(returnQName, "retNS") +
  +                     "\"");
  +        }
  +        if (returnType != null) {
  +            pw.print(" returnType=\"" +
  +                     Utils.genQNameAttributeString(returnType, "RTypeNS") +
                        "\"");
           }
           pw.println(" >");
  
  
  

Mime
View raw message