axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Gourley (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-4193) WSDL2JAVA no setters in ADBBean
Date Thu, 03 Jun 2010 15:10:01 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aaron Gourley updated AXIS2-4193:
---------------------------------

    Attachment: SoapService.wsdl
                gencode.zip

Attaching a small sample WSDL that reproduces the issue. Here are the arguments that I'm passing
to WSDL2Java (Axis2 1.5.1): 

-p webservice.test -o /workspace/codegen/ -S src\java -R classes\webservice\test --noBuildXML
--noWSDL -g -ss -ssi -sd -d adb -wv 1.1 -ns2p http://schemas.test.com/webservices/2006=webservice.test.types._2006,http://schemas.test.com/webservices/2009=webservice.test.types._2009,http://test.com/wsdl/types/=webservice.test.types
-uw -u -Euwc -uri /workspace/src/wsdl/SoapService.wsdl

I've also attached the generated code.  Things to notice:

1. Reference class is correctly defined as:
public  class Reference extends webservice.test.types.Guid implements org.apache.axis2.databinding.ADBBean

2. ComplexReference is correctly defined as:
public  class ComplexReference extends webservice.test.types.CGuid implements org.apache.axis2.databinding.ADBBean

3. ConcreteComplexReference and ReallyConcreteComplexReference are correctly defined as:
public  class ConcreteComplexReference extends webservice.test.types._2006.ComplexReference
implements org.apache.axis2.databinding.ADBBean
public  class ReallyConcreteComplexReference extends webservice.test.types._2006.ConcreteComplexReference
implements org.apache.axis2.databinding.ADBBean

3. ConcreteReference and ReallyConcreteReference do not extend the parent classes properly:
public  class ConcreteReference implements org.apache.axis2.databinding.ADBBean
public  class ReallyConcreteReference implements org.apache.axis2.databinding.ADBBean

This tells me that the problem is somewhere in the processing of complex types that are extensions
of simple content.  This appears to only be a problem when a conplex type extends another
complex type but both contain simple content (i.e. type hierarchy is more than 2 levels deep).

> WSDL2JAVA no setters in ADBBean
> -------------------------------
>
>                 Key: AXIS2-4193
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4193
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, codegen
>    Affects Versions: 1.4.1
>            Reporter: Roger Niederland
>         Attachments: gencode.zip, SoapService.wsdl
>
>
> Generating java classes using wsdl2java (as ADBBeans) (Axis2 version 1.4.1) 
>  on WSDL containing the following information: 
>    <xs:complexType name="PaymentAmount"> 
>       <xs:simpleContent> 
>          <xs:extension base="tns:Amount"/> 
>       </xs:simpleContent> 
>    </xs:complexType> 
>    <xs:complexType name="Amount"> 
>       <xs:simpleContent> 
>          <xs:extension base="xs:decimal"> 
>             <xs:attribute name="currency" type="tns:currency" use="required"/>

>          </xs:extension> 
>       </xs:simpleContent> 
>    </xs:complexType> 
> The generated PaymentAmount class has no setter or getter methods. 
> The generated Amount class has as expected setter and getter method for Currency and
Decimal. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message