axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/fromJava Em itter.java
Date Tue, 06 Jul 2004 15:44:17 GMT

Er?

Is this really the right thing to do?  The operation description should have
the operation name in it.  If it doesn't, shouldn't we fix that in the
description?

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: dims@apache.org [mailto:dims@apache.org] 
Sent: Friday, July 02, 2004 8:12 PM
To: ws-axis-cvs@apache.org
Subject: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/fromJava
Emitter.java

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