axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava Emitter.java
Date Fri, 27 Sep 2002 16:23:14 GMT
scheu       2002/09/27 09:23:14

  Modified:    java/src/org/apache/axis/wsdl/fromJava Emitter.java
  Log:
  Minor Fix to the Java2WSDL WRAPPED mode.
  
  The name of the message part in the request should be "body" and
  the message part in the reponse should be "return".
  
  Revision  Changes    Path
  1.66      +6 -2      xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- Emitter.java	26 Sep 2002 21:52:12 -0000	1.65
  +++ Emitter.java	27 Sep 2002 16:23:13 -0000	1.66
  @@ -1147,8 +1147,12 @@
                                                 param.getName(),
                                                 typeQName)) {
                       // If wrapper element is written
  -                    // add <part name="body" element=wrapper_elem />
  -                    part.setName("body");
  +                    // add <part name="body/return" element=wrapper_elem />
  +                    if (request) {
  +                        part.setName("body");
  +                    } else {
  +                        part.setName("return");
  +                    }
                       part.setElementName(wrapperQName);
                       msg.addPart(part);
                   }
  
  
  

Mime
View raw message