axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/fromJava Emitter.java
Date Sat, 03 Jul 2004 00:12:23 GMT
dims        2004/07/02 17:12:23

  Modified:    java/src/org/apache/axis/wsdl/fromJava Emitter.java
  Log:
  Use elementQName's local part if present
  
  Revision  Changes    Path
  1.127     +6 -1      ws-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
  retrieving revision 1.126
  retrieving revision 1.127
  diff -u -r1.126 -r1.127
  --- Emitter.java	22 Jun 2004 16:58:25 -0000	1.126
  +++ Emitter.java	3 Jul 2004 00:12:23 -0000	1.127
  @@ -1178,7 +1178,12 @@
   
           Operation oper = def.createOperation();
   
  -        oper.setName(desc.getName());
  +        QName elementQName = desc.getElementQName();
  +        if(elementQName != null && elementQName.getLocalPart() != null) {
  +            oper.setName(elementQName.getLocalPart());
  +        } else {
  +            oper.setName(desc.getName());
  +        }
           oper.setUndefined(false);
   
           return writeBindingOperation(def, binding, oper, desc);
  
  
  

Mime
View raw message