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

Heino Wachter closed AXIS2-4207.
--------------------------------

    Resolution: Duplicate

Sorry, got problems with my interface, didn' though the system would have 
accept this try. Please refer to Axis2-4208. Here the the same bug is reported. 
Thanks!

> wsdl2 java doesn't support polymorphism
> ---------------------------------------
>
>                 Key: AXIS2-4207
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4207
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4.1
>         Environment: WinXp, eclipse
>            Reporter: Heino Wachter
>
> Code generation  from a wsdl file doesn't generate derived classes in case 
> the parent class is included in the message. The parent class is intended to 
> act as an interface only and the derived classes forms the set of available 
> messages. I've extracted from the original wsdl file one message with a 
> derived one:
>      <complexType name="SoapBase">
>         <sequence></sequence>
>       </complexType>
>       <complexType name="Event">
>         <complexContent>
>           <extension base="vr:SoapBase">
>             <sequence></sequence>
>           </extension>
>         </complexContent>
>       </complexType>
>       <complexType name="EvtCommInfo">
>         <complexContent>
>           <extension base="vr:Event">
>             <sequence>
>               <element maxOccurs="1" minOccurs="1" name="commInfo"
>                 type="xsd:int" />
>             </sequence>
>           </extension>
>         </complexContent>
>       </complexType>
>     </schema>
>     :
>      <message name="event">
>     <part name="parameters" element="vr:Event"></part>
>     </message>
> With that the parent classes Event and SoapBase are generated, but the  
> EvtCommInfo class is missing. The result is the same if I use the eclipse 
> plugin org.apache.axis2_Codegen_Wizard_1.3.0 or the wsdl2java from the 
> axis2-1.4.1 distribution.
> Thanks in advance
> haino
> I cannot change the wsdl file as it runs already in a .Net environment I've 
> to connect to. So changing to choices is no option.

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

Reply via email to