axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl Emitter.java
Date Tue, 23 Oct 2001 13:33:30 GMT
dug         01/10/23 06:33:30

  Modified:    java/src/org/apache/axis/wsdl Emitter.java
  Log:
  Switch invoke() to JAX-RPC format.
  
  Revision  Changes    Path
  1.74      +8 -12     xml-axis/java/src/org/apache/axis/wsdl/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Emitter.java,v
  retrieving revision 1.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- Emitter.java	2001/10/23 12:31:44	1.73
  +++ Emitter.java	2001/10/23 13:33:30	1.74
  @@ -1310,10 +1310,10 @@
                   pw.println("        call.addParameter(\"" + p.name + "\", " + typeString
+ ", org.apache.axis.client.Call.PARAM_MODE_IN);");
               }
               else if (p.mode == Parameter.INOUT) {
  -                pw.println("        call.addParameter(\"" + p.name + "\", " + typeString
+ ", org.apache.axis.client.Call.PARAM_MODE_INOUT);");
  +                pw.println("        call.addParameter(\"" + p.name + "\", " + typeString
+ ", call.PARAM_MODE_INOUT);");
               }
               else { // p.mode == Parameter.OUT
  -                pw.println("        call.addParameter(\"" + p.name + "\", " + typeString
+ ", org.apache.axis.client.Call.PARAM_MODE_OUT);");
  +                pw.println("        call.addParameter(\"" + p.name + "\", " + typeString
+ ", call.PARAM_MODE_OUT);");
               }
           }
           // set output type
  @@ -1327,14 +1327,12 @@
           }
   
           pw.println("        call.setProperty(org.apache.axis.transport.http.HTTPTransport.ACTION,
\"" + soapAction + "\");");
  +        pw.println("        call.setProperty(call.NAMESPACE, \"" + namespace
  +                                                 + "\");" );
  +        pw.println("        call.setOperationName( \"" + name + "\");" );
           pw.print("        Object resp = call.invoke(");
  +        pw.print("new Object[] {");
   
  -        // Namespace
  -        pw.print("\"" + namespace + "\"");
  -
  -        // Operation
  -        pw.print(", \"" + name + "\", new Object[] {");
  -
           // Write the input and inout parameter list
           boolean needComma = false;
           for (int i = 0; i < parms.list.size(); ++i) {
  @@ -1347,11 +1345,9 @@
               else
                   needComma = true;
               if (p.mode == Parameter.IN)
  -                pw.print("new org.apache.axis.message.RPCParam(\"" + p.name +
  -                        "\", " + wrapPrimitiveType(p.type, p.name) + ")");
  +                pw.print(wrapPrimitiveType(p.type, p.name));
               else if (p.mode == Parameter.INOUT)
  -                pw.print("new org.apache.axis.message.RPCParam(\"" + p.name +
  -                        "\", " + wrapPrimitiveType(p.type, p.name + "._value")+ ")");
  +                pw.print(wrapPrimitiveType(p.type, p.name + "._value"));
           }
           pw.println("});");
           pw.println();
  
  
  

Mime
View raw message