You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Tom Jordahl <to...@macromedia.com> on 2002/09/27 18:31:06 UTC

RE: cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava E mitter.java

Rich,

You might want to make this name "parameters" for the request.

This would match what .NET does and I believe trigger *their* wrapped mode processing, which would be a good thing.

FYI MS also used parameters for the response too...

--
Tom Jordahl
Macromedia Server Development



-----Original Message-----
From: scheu@apache.org [mailto:scheu@apache.org]
Sent: Friday, September 27, 2002 12:23 PM
To: xml-axis-cvs@apache.org
Subject: cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava
Emitter.java


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);
                   }