WSDL2Java generates incorrect code for multiple faults
------------------------------------------------------

                 Key: AXIS2-922
                 URL: http://issues.apache.org/jira/browse/AXIS2-922
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: Tools
            Reporter: Dave Cowing


When I run WSDL2Java on a wsdl that has 3 faults for a service, the generated 
skeleton is incorrect.
1) the service method declaration in the skeleton has the right number of 
faults in the throws portion, but they're all the same:
           throws 
com.example.cis.UpdateMemberSkeleton.InvalidMemberIdFaultException,com.example.cis.UpdateMemberSkeleton.InvalidMemberIdFaultException,com.example.cis.UpdateMemberSkeleton.InvalidMemberIdFaultException{

2) Only one fault exception class is generated in the skeleton, when there 
should be three.

I'm attaching my wsdl, as well as the generated skeleton.

My wsdl call is:
       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
            <classpath refid="axis.classpath"/> 
            <arg value="-uri"/>
            <arg file="web\wsdl\Services.wsdl"/>
            <arg value="-ss"/>
            <arg value="-sd"/>
            <arg value="-d"/>
            <arg value="adb"/>
            <arg value="-g"/>
            <arg value="-sn"/>
            <arg value="updateMember"/>
            <arg value="-o"/>
            <arg file="${ws.gen.dir}"/>
            <arg value="-p"/>
            <arg value="com.example.cis"/>
        </java>


-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to