axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl Emitter.java
Date Fri, 12 Oct 2001 20:46:33 GMT
tomj        01/10/12 13:46:33

  Modified:    java/src/org/apache/axis/wsdl Emitter.java
  Log:
  Check to make sure we don't emit the same fault class more than once.
  
  Revision  Changes    Path
  1.49      +7 -1      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.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- Emitter.java	2001/10/11 23:33:17	1.48
  +++ Emitter.java	2001/10/12 20:46:33	1.49
  @@ -915,6 +915,11 @@
           String exceptionName = Utils.capitalize(xmlNameToJava(operation.getName()));
           String fileName = exceptionName + ".java";
   
  +        // check to make sure we haven't already emitted this fault
  +        if (this.classList.contains(exceptionName) ) {
  +            return exceptionName;
  +        }
  +
           this.classList.add(exceptionName);
           this.fileList.add(fileName);
   
  @@ -1178,7 +1183,8 @@
           firstSer = false ;
   
           QName qname = type.getQName();
  -        pw.println("            qn = new org.apache.axis.utils.QName(\"" + qname.getNamespaceURI()
+ "\", \"" + type.getJavaLocalName() + "\");");
  +        //pw.println("            qn = new org.apache.axis.utils.QName(\"" + qname.getNamespaceURI()
+ "\", \"" + type.getJavaLocalName() + "\");");
  +        pw.println("            qn = new org.apache.axis.utils.QName(\"" + qname.getNamespaceURI()
+ "\", \"" + qname.getLocalPart() + "\");");
           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());");
  
  
  

Mime
View raw message