You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Heino Wachter (JIRA)" <ji...@apache.org> on 2009/01/13 23:36:59 UTC

[jira] Updated: (AXIS2-4208) wsdl2java creates no derived message classes

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

Heino Wachter updated AXIS2-4208:
---------------------------------

    Attachment: client.wsdl

Simplified version of the original wsdl file

> wsdl2java creates no derived message classes
> --------------------------------------------
>
>                 Key: AXIS2-4208
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4208
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4.1
>         Environment: winXp, eclipse and console
>            Reporter: Heino Wachter
>         Attachments: client.wsdl
>
>
> The wsdl2java (from axis2 1.4.1 distribution) as well a the eclipse plugin org.apache.axis2_Codegen_Wizard_1.3.0 are not able to create a derived class for a message, if in the message the parent class is defined only. The parent class Event is intended to be used as an interface for the messages only, where the derived classes (in the example only one: EvtCommInfo) contain the real message. I've extracted a simplified version:
>     :
>       <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>
>       :
>       <element name="event">
>         <complexType>
>           <sequence>
>             <element maxOccurs="1" minOccurs="0" name="event"
>               nillable="true" type="vr:Event" />
>           </sequence>
>         </complexType>
>       </element>
>     </schema>
>   <message name="event">
>     <part name="parameters" element="vr-client:event"></part>
>   </message>
> With this SoapBase and Event class are generated but the EvtCommInfo is not generated. 
> As I cannot change the wsdl file (as it runs already on a .net server, I need to connect to) I need help urgently.
> Thanks in advance 
> haino

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