[ 
http://issues.apache.org/jira/browse/AXIS-2404?page=comments#action_12369135 ] 

qin bethune commented on AXIS-2404:
-----------------------------------

This is a fix and has passed all unit test against Axis 1.3
 
Index: org/apache/axis/wsdl/symbolTable/SchemaUtils.java
===================================================================
--- org/apache/axis/wsdl/symbolTable/SchemaUtils.java   (revision 381218)
+++ org/apache/axis/wsdl/symbolTable/SchemaUtils.java   (working copy)
@@ -202,7 +202,8 @@
                       }
                   }
                   return true;
-              } else {
+              } else if (!localName.equals("annotation")){
+                  //fix for Axis-2404,allow annotation as sibling of sequence.

                   return false;
               }
           }

> WSDL2Java can't generate java interface of wrapped style when the wrapper 
> element has an annotation child element.
> ------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS-2404
>          URL: http://issues.apache.org/jira/browse/AXIS-2404
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows XP
>     Reporter: qin bethune

>
> Given the following schema, 
>    <element name="add">
>     <complexType>
>       <!--annotation>
>               <documentation>add operation</documentation>
>       </annotation-->
>      <sequence>
>       <element name="in0" type="xsd:int"/>
>       <element name="in1" type="xsd:int"/>
>      </sequence>
>     </complexType>
>    </element>
> The generated java interface will be something like
> public interface WrapperTestInterface extends java.rmi.Remote {
>     public int add(int in0, int in1) throws java.rmi.RemoteException;
> }
> Uncomment the annotation element, the generated java interface will be 
> something like.
> package test;
> public interface WrapperTestInterface extends java.rmi.Remote {
>     public test.AddResponse add(test.Add parameters) throws 
> java.rmi.RemoteException;
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to