[ http://issues.apache.org/jira/browse/AXIS2-9?page=comments#action_59864 ]
     
nico pico commented on AXIS2-9:
-------------------------------

Hi,

we have a similar problem using axis rc1.2 for java.
We create java-classes and publish them in a web service with type describtion 
including minOccurs="0" and maxOccurs="999".
The deploying the service the min- and maxoccurs in the wsdl are lost. just 
maxoccurs="unbounded".
after manipulating the wsdl (insert minOccurs="0"), rebuilding the classes with 
wsdl2java and including the new classes to the service the attributs min- and 
maxOccurs are lost again.
That just happens then using complextypes. With strings it seems to be ok

regards.

> wsdl2java
> ---------
>
>          Key: AXIS2-9
>          URL: http://issues.apache.org/jira/browse/AXIS2-9
>      Project: Axis2
>         Type: Sub-task
>     Reporter: Quansheng Jia
>     Assignee: Davanum Srinivas

>
> Hi;
>  
> I use Axis1.2_RC2 and axis1.2_RC3 to build IFX (Interactive Financial 
> Exchange) base WSDL2Java, I noticed that the tool fail to build correct java 
> bean which mapping to XML schema:
>  
> <xsd:sequence maxOccurs="unbounded">
>                    <xsd:element ref="MediaAcctAdjAddRq" minOccurs="0"/>
>  
>  
> For example: for below complex type, correct java bean API for 
> MediaAcctAdjAddRq should be:
>  
> Public void setMediaAcctAdjAddRq(int index, MediaAcctAdjAddRq 
> mediaAcctAdjAddrq)
> {
>       ��
> }
>  
> Public MediaAcctAdjAddRq[] getMediaAcctAdjAddRq()
> {
>       ��                                   
> }
>  
>  
> The tool generate   below incorrect APIs:
>  
> Public void setMediaAcctAdjAddRq(MediaAcctAdjAddRq mediaAcctAdjAddrq)
> {
>       ��
> }
>  
> Public MediaAcctAdjAddRq getMediaAcctAdjAddRq()
> {
>       ��
> }
>  
>  
>  
>  
> Thanks
>  
>  
> Quansheng 
>  
>  
>  
>  
>  
>  
>  
> <xsd:complexType name="MediaSvcRq_Type">
>             <xsd:sequence>
>                   <xsd:element ref="RqUID"/>
>                   <xsd:element ref="MsgRqHdr" minOccurs="0"/>
>                   <xsd:element ref="AsyncRqUID" minOccurs="0"/>
>                   <xsd:element ref="SPName" minOccurs="0"/>
>                   <xsd:sequence maxOccurs="unbounded">
>                         <xsd:element ref="MediaAcctAdjAddRq" minOccurs="0"/>
>                         <xsd:element ref="MediaAcctAdjInqRq" minOccurs="0"/>
>                         <xsd:element ref="MediaAcctAdjAudRq" minOccurs="0"/>
>                         <xsd:element ref="MediaAcctAdjSyncRq" minOccurs="0"/>
>                         <xsd:element ref="MediaAcctAdjRevRq" minOccurs="0"/>
>                         <xsd:element ref="MediaAcctInventoryInqRq" 
> minOccurs="0"/>
>                         <xsd:element ref="MediaAcctInventoryRevRq" 
> minOccurs="0"/>
>                         <xsd:element ref="TerminalObjAddRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalObjModRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalObjInqRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalObjDelRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalObjAudRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalObjStatusModRq" 
> minOccurs="0"/>
>                         <xsd:element ref="TerminalObjAdviseRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalSPObjAddRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalSPObjModRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalSPObjInqRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalSPObjDelRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalSPObjAudRq" minOccurs="0"/>
>                         <xsd:element ref="TerminalSPObjAdviseRq" 
> minOccurs="0"/>
>                         <xsd:element ref="DevInqRq" minOccurs="0"/>
>                         <xsd:element ref="DevAdviseRq" minOccurs="0"/>
>                   </xsd:sequence>
>             </xsd:sequence>
>             <xsd:attribute name="Id" type="xsd:ID"/>
>       </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to