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 Thu, 11 Oct 2001 23:33:17 GMT
dug         01/10/11 16:33:17

  Modified:    java/src/org/apache/axis/wsdl Emitter.java
  Log:
  Fix some minor bugs
  
  Revision  Changes    Path
  1.48      +12 -4     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.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- Emitter.java	2001/10/11 21:22:45	1.47
  +++ Emitter.java	2001/10/11 23:33:17	1.48
  @@ -115,6 +115,8 @@
       public static final byte REQUEST_SCOPE     = 0x10;
       public static final byte SESSION_SCOPE     = 0x11;
   
  +    private static boolean firstSer = true ;
  +
       private Document doc = null;
       private Definition def = null;
       private WsdlAttributes wsdlAttr = null;
  @@ -1169,11 +1171,17 @@
           if (type.getBaseType() != null) {
               return;
           }
  +        if ( firstSer ) {
  +            pw.println("            org.apache.axis.utils.QName qn;" );
  +            pw.println("            Class cls;" );
  +        }
  +        firstSer = false ;
  +
           QName qname = type.getQName();
  -        pw.println("            org.apache.axis.utils.QName qn1 = new org.apache.axis.utils.QName(\""
+ qname.getNamespaceURI() + "\", \"" + type.getJavaLocalName() + "\");");
  -        pw.println("            Class cls = " + type.getJavaName() + ".class;");
  -        pw.println("            call.addSerializer(cls, qn1, new org.apache.axis.encoding.BeanSerializer(cls));");
  -        pw.println("            call.addDeserializerFactory(qn1, cls, org.apache.axis.encoding.BeanSerializer.getFactory());");
  +        pw.println("            qn = new org.apache.axis.utils.QName(\"" + qname.getNamespaceURI()
+ "\", \"" + type.getJavaLocalName() + "\");");
  +        pw.println("            cls = " + type.getJavaName() + ".class;");
  +        pw.println("            call.addSerializer(cls, qn, new org.apache.axis.encoding.BeanSerializer(cls));");
  +        pw.println("            call.addDeserializerFactory(qn, cls, org.apache.axis.encoding.BeanSerializer.getFactory());");
           pw.println();
       } // writeSerializationInit
   
  
  
  

Mime
View raw message