axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heino Wachter (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4208) wsdl2java creates no derived message classes
Date Wed, 21 Jan 2009 18:39:59 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665907#action_12665907
] 

Heino Wachter commented on AXIS2-4208:
--------------------------------------

Hi,
it's definitively not an Axis2 problem! The code generator fails. I found a way to outwit
the generator:

Added in the wsdl file dummy message definitions, one for each derived message I need. These
messages even had not to be mentioned in the portType nor the binding section (thereby no
additional services are generated!).

With this, the code generator adds the missing derived message classes and by receiving the
super class I'm now able to distinguish between the different instances of the derived classes
- that's what I need!!! (I attach wsdl file example of these changes). 

But it would be nice, if the code generator would work properly ;) Thanks in advance! 



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


Mime
View raw message