axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Sieben (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4208) wsdl2java creates no derived message classes
Date Mon, 07 Sep 2009 15:22:57 GMT

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

Dennis Sieben commented on AXIS2-4208:
--------------------------------------

After some testing around I found out, that the files are generated if the option -g is given
to wsdl2java. I've tested this with the version 1.5.

But the help output it misleading, it states:

"-g Generates all the classes. Valid only with -ss."

but the parameter does also work alone. And must be given in this case.

So the description should be changed.

> 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-with-fakes.wsdl, 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