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 sc...@apache.org on 2002/09/27 18:23:14 UTC
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);
}