tomj 02/02/28 08:45:28
Modified: java/src/org/apache/axis/wsdl/toJava JavaStubWriter.java
Log:
Set the property (for now the literal "wrapped") that will compensate for the
peeling back
of the top level element in .NET document/literal WSDL.
If the "wapped" property is set, the client engine emits the operation name as
as wrapping element around the literal argument.
Example:
Instead of generating function GetRank(GetRank in0) to emit the following XML:
<GetRank>
<ISBN>12345</ISBN>
</GetRank>
We emit the function GetRank(String ISBN) and set the operation to "GetRank",
which emits the equivalent XML when the "wrapped" switch is on.
Revision Changes Path
1.38 +3 -0
xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java
Index: JavaStubWriter.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- JavaStubWriter.java 27 Feb 2002 19:07:51 -0000 1.37
+++ JavaStubWriter.java 28 Feb 2002 16:45:28 -0000 1.38
@@ -528,6 +528,9 @@
// Encoding: literal or encoded use.
int use = bEntry.getInputBodyType(operation.getOperation());
if (use == BindingEntry.USE_LITERAL) {
+ if (symbolTable.isWrapped()) {
+ pw.println(" call.setProperty(\"wrapped\", Boolean.TRUE);");
+ }
// Turn off encoding
pw.println(" call.setEncodingStyle(null);");
// turn off multirefs